aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2014-05-25 21:43:34 +0900
committerJens Axboe <[email protected]>2014-07-01 10:43:09 -0600
commit9b4231bf995996d6459c57959ead5a1829ff2c57 (patch)
treef9c44bc06c67b67448950624da3ea80b5d4b3bd2 /net/lapb/lapb_subr.c
parent63f264965947ac6299452711f614f086955b2515 (diff)
block: fix SG_[GS]ET_RESERVED_SIZE ioctl when max_sectors is huge
SG_GET_RESERVED_SIZE and SG_SET_RESERVED_SIZE ioctls access a reserved buffer in bytes as int type. The value needs to be capped at the request queue's max_sectors. But integer overflow is not correctly handled in the calculation when converting max_sectors from sectors to bytes. Signed-off-by: Akinobu Mita <[email protected]> Cc: Jens Axboe <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: Douglas Gilbert <[email protected]> Cc: [email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions