aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorAkinobu Mita <[email protected]>2013-11-18 22:11:42 +0900
committerJens Axboe <[email protected]>2013-11-18 12:31:27 -0700
commit34f2fd8dfe6185b0eaaf7d661281713a6170b077 (patch)
treec33d3575e41db4350bce9e6f30d684ce735bebaf /lib/string_helpers.c
parent2d3c627502f2a9b0a7de06a5a2df2365542a72c9 (diff)
bio: fix argument of __bio_add_page() for max_sectors > 0xffff
The data type of max_sectors and max_hw_sectors in queue settings are unsigned int. But these values are passed to __bio_add_page() as an argument whose data type is unsigned short. In the worst case such as max_sectors is 0x10000, bio_add_page() can't add a page and IOs can't proceed. Cc: Jens Axboe <[email protected]> Cc: Alexander Viro <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions