Skip to content
Commit 475bf36f authored by Akinobu Mita's avatar Akinobu Mita Committed by Chris Mason
Browse files

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 <chris.mason@fusionio.com>
Cc: linux-btrfs@vger.kernel.org
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 4cd8587c
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