linux/drivers/nvme/host
Jaesoo Lee c8e8c77b3b nvme: Fix u32 overflow in the number of namespace list calculation
The Number of Namespaces (nn) field in the identify controller data structure is
defined as u32 and the maximum allowed value in NVMe specification is
0xFFFFFFFEUL. This change fixes the possible overflow of the DIV_ROUND_UP()
operation used in nvme_scan_ns_list() by casting the nn to u64.

Signed-off-by: Jaesoo Lee <jalee@purestorage.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
2019-06-06 09:53:07 -07:00
..
core.c nvme: Fix u32 overflow in the number of namespace list calculation 2019-06-06 09:53:07 -07:00
fabrics.c nvme-fabrics: remove unused argument 2019-05-14 17:19:43 +02:00
fabrics.h nvme-fabrics: convert to SPDX identifiers 2019-02-20 07:22:13 -07:00
fault_inject.c nvme: convert to SPDX identifiers 2019-02-20 07:22:28 -07:00
fc.c for-5.2/block-post-20190516 2019-05-16 19:08:15 -07:00
Kconfig nvme-tcp: add NVMe over TCP host driver 2018-12-13 09:58:58 +01:00
lightnvm.c lightnvm: Inherit mdts from the parent nvme device 2019-05-06 10:19:17 -06:00
Makefile nvme-tcp: add NVMe over TCP host driver 2018-12-13 09:58:58 +01:00
multipath.c nvme-multipath: avoid crash on invalid subsystem cntlid enumeration 2019-05-13 16:00:03 +02:00
nvme.h nvme-pci: Sync queues on reset 2019-05-17 11:04:34 -06:00
pci.c nvme-pci: use blk-mq mapping for unmanaged irqs 2019-05-22 10:11:36 -06:00
rdma.c nvme-rdma: fix queue mapping when queue count is limited 2019-05-30 11:06:55 -07:00
tcp.c nvme-tcp: fix queue mapping when queue count is limited 2019-05-30 11:07:37 -07:00
trace.c nvme: add get-feature to admin cmds tracer 2019-03-13 12:05:39 -06:00
trace.h nvme: trace all async notice events 2019-05-14 17:19:47 +02:00