From: Akinobu Mita Date: Mon, 18 Nov 2013 13:13:18 +0000 (+0900) Subject: btrfs: fix bio_size_ok() for max_sectors > 0xffff X-Git-Tag: v3.13-rc1~13^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=475bf36ffba2ad18631865a2429468dc6c7ea919;p=pandora-kernel.git btrfs: fix bio_size_ok() for max_sectors > 0xffff The data type of max_sectors in queue settings is unsigned int. But this value is stored to the local variable whose type is unsigned short in bio_size_ok(). This can cause unexpected result when max_sectors > 0xffff. Cc: Chris Mason Cc: linux-btrfs@vger.kernel.org Signed-off-by: Akinobu Mita Signed-off-by: Chris Mason --- Reading git-diff-tree failed