Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7a88fa19 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent a4d907b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment