]> git.baikalelectronics.ru Git - kernel.git/commit
block: turn the nr_iovecs argument to bio_alloc* into an unsigned short
authorChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 17:19:24 +0000 (18:19 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Feb 2021 15:33:16 +0000 (08:33 -0700)
commit6d7afe236344c9a1566e76f0d29455ff4557c7f6
tree740ef403c488f74f65f71b838df33970c4244433
parent9a78710dbf3d97c6ede55d50e15be7b26e850f0c
block: turn the nr_iovecs argument to bio_alloc* into an unsigned short

The bi_max_vecs and bi_vcnt fields are defined as unsigned short, so
don't allow passing larger values in.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h