aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2017-07-27 09:11:26 +0200
committerMartin K. Petersen <[email protected]>2017-07-27 08:50:11 -0400
commitf930c7043663188429cd9b254e9d761edfc101ce (patch)
tree3c4507bbc771549fc9bb4a35a4855d1139c0bce3 /lib/memory-notifier-error-inject.c
parente6fd916a625110d75bd4d15b8488df44cf41c9fc (diff)
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: 28676d869bbb (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]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions