diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2014-06-02 22:56:46 +0900 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-07-17 22:07:29 +0200 |
commit | 46f69e6a6bbbf3858617c8729e31895846c15a79 (patch) | |
tree | 08a5ee77461f9b1899d43fd5c74aea6527be614e /fs/hppfs | |
parent | fcc95a763444017288b318d48367098850c23c0d (diff) | |
download | op-kernel-dev-46f69e6a6bbbf3858617c8729e31895846c15a79.zip op-kernel-dev-46f69e6a6bbbf3858617c8729e31895846c15a79.tar.gz |
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 <akinobu.mita@gmail.com>
Acked by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/hppfs')
0 files changed, 0 insertions, 0 deletions