Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Acked by: Douglas Gilbert <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
- Loading branch information