diff options
author | 2014-03-24 10:03:56 -0400 | |
---|---|---|
committer | 2014-03-24 10:03:56 -0400 | |
commit | ddcb776286c091189a7b928188112470ec7e9efc (patch) | |
tree | 077548a5b838e231dc10783079ccf2360b072a04 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | NVMe: IOCTL path RCU protect queue access (diff) | |
download | linux-rng-ddcb776286c091189a7b928188112470ec7e9efc.tar.xz linux-rng-ddcb776286c091189a7b928188112470ec7e9efc.zip |
NVMe: Fix divide-by-zero in nvme_trans_io_get_num_cmds
dev->max_hw_sectors may be zero to indicate the device has no limit on
the number of sectors. nvme_trans_do_nvme_io() should use the software
limit, since this is guaranteed to be non-zero.
Reported-by: Mundu <mundu2510@gmail.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions