summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.host
diff options
context:
space:
mode:
authorJaesoo Lee2019-06-04 01:42:28 +0200
committerSagi Grimberg2019-06-06 18:53:07 +0200
commitc8e8c77b3bdbade6e26e8e76595f141ede12b692 (patch)
tree4208435720b69ba62d21bf61a95a149a3ce71893 /scripts/Makefile.host
parentnvmet: fix data_len to 0 for bdev-backed write_zeroes (diff)
downloadkernel-qcow2-linux-c8e8c77b3bdbade6e26e8e76595f141ede12b692.tar.gz
kernel-qcow2-linux-c8e8c77b3bdbade6e26e8e76595f141ede12b692.tar.xz
kernel-qcow2-linux-c8e8c77b3bdbade6e26e8e76595f141ede12b692.zip
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>
Diffstat (limited to 'scripts/Makefile.host')
0 files changed, 0 insertions, 0 deletions