aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorKeith Busch <[email protected]>2014-03-24 10:03:56 -0400
committerMatthew Wilcox <[email protected]>2014-03-24 10:03:56 -0400
commitddcb776286c091189a7b928188112470ec7e9efc (patch)
tree077548a5b838e231dc10783079ccf2360b072a04 /net/lapb/lapb_in.c
parent4f5099af4f3d5f999d8ab7784472d93e810e3912 (diff)
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 <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Matthew Wilcox <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions