aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorJaesoo Lee <[email protected]>2019-06-03 16:42:28 -0700
committerSagi Grimberg <[email protected]>2019-06-06 09:53:07 -0700
commitc8e8c77b3bdbade6e26e8e76595f141ede12b692 (patch)
tree4208435720b69ba62d21bf61a95a149a3ce71893 /tools/perf/util/c++/clang.cpp
parent3562f5d9f21e7779ae442a45197fed6cb247fd22 (diff)
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions