]> git.baikalelectronics.ru Git - kernel.git/commit
block: make nr_iovecs unsigned in bio_alloc_bioset()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Mar 2017 10:24:55 +0000 (13:24 +0300)
committerJens Axboe <axboe@fb.com>
Thu, 23 Mar 2017 14:16:11 +0000 (08:16 -0600)
commitc32ffb05ae1c65a57fbfa227db7cdb914a04d866
tree08ffd2bfc3cdf1f9ff08c0eeafc468dce213315c
parentda09ee0a5b5707bfe1b1c159b85332bc6a6b8dd5
block: make nr_iovecs unsigned in bio_alloc_bioset()

There isn't a bug here, but Smatch is not smart enough to know that
"nr_iovecs" can't be negative so it complains about underflows.
Really, it's slightly cleaner to make this parameter unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bio.c
include/linux/bio.h