Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scsi: sg: only check for dxfer_len greater than 256M
Don't make any assumptions on the sg_io_hdr_t::dxfer_direction or the sg_io_hdr_t::dxferp in order to determine if it is a valid request. The only way we can check for bad requests is by checking if the length exceeds 256M. Signed-off-by: Johannes Thumshirn <[email protected]> Fixes: 28676d8 (scsi: sg: check for valid direction before starting the request) Reported-by: Jason L Tibbitts III <[email protected]> Tested-by: Jason L Tibbitts III <[email protected]> Suggested-by: Doug Gilbert <[email protected]> Cc: Doug Gilbert <[email protected]> Cc: <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
- Loading branch information