From: Akinobu Mita Date: Mon, 2 Jun 2014 13:56:46 +0000 (+0900) Subject: sg: prevent integer overflow when converting from sectors to bytes X-Git-Tag: omap-for-v3.17/fixes-against-rc2~143^2~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46f69e6a6bbbf3858617c8729e31895846c15a79;p=pandora-kernel.git sg: prevent integer overflow when converting from sectors to bytes This prevents integer overflow when converting the request queue's max_sectors from sectors to bytes. However, this is a preparation for extending the data type of max_sectors in struct Scsi_Host and scsi_host_template. So, it is impossible to happen this integer overflow for now, because SCSI low-level drivers can not specify max_sectors greater than 0xffff due to the data type limitation. Signed-off-by: Akinobu Mita Acked by: Douglas Gilbert Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed