aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2014-05-25 21:43:33 +0900
committerJens Axboe <[email protected]>2014-07-01 10:43:07 -0600
commit63f264965947ac6299452711f614f086955b2515 (patch)
tree20050c8d77eb14fbb1439eb9af85916bf87f7dd2 /net/lapb/lapb_subr.c
parent16e1556526241b893d40b01d1c1b14a4e83ee499 (diff)
block: fix BLKSECTGET ioctl when max_sectors is greater than USHRT_MAX
BLKSECTGET ioctl loads the request queue's max_sectors as unsigned short value to the argument pointer. So if the max_sector is greater than USHRT_MAX, the upper 16 bits of that is just discarded. In such case, USHRT_MAX is more preferable than the lower 16 bits of max_sectors. 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