From: Keith Busch Date: Mon, 24 Mar 2014 14:03:56 +0000 (-0400) Subject: NVMe: Fix divide-by-zero in nvme_trans_io_get_num_cmds X-Git-Tag: v3.15-rc1~21^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddcb776286c091189a7b928188112470ec7e9efc;p=pandora-kernel.git 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 Signed-off-by: Keith Busch Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed