diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2014-05-25 14:43:33 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-07-01 18:43:07 +0200 |
commit | 63f264965947ac6299452711f614f086955b2515 (patch) | |
tree | 20050c8d77eb14fbb1439eb9af85916bf87f7dd2 /sound | |
parent | block/partitions/efi.c: kerneldoc fixing (diff) | |
download | linux-63f264965947ac6299452711f614f086955b2515.tar.xz linux-63f264965947ac6299452711f614f086955b2515.zip |
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 <akinobu.mita@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Cc: linux-scsi@vger.kernel.org
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions