From: Akinobu Mita Date: Mon, 18 Nov 2013 13:11:42 +0000 (+0900) Subject: bio: fix argument of __bio_add_page() for max_sectors > 0xffff X-Git-Tag: v3.13-rc1~30^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34f2fd8dfe6185b0eaaf7d661281713a6170b077;p=pandora-kernel.git 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 Cc: Alexander Viro Signed-off-by: Akinobu Mita Signed-off-by: Jens Axboe --- Reading git-diff-tree failed