Skip to content
Commit e993db2d authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Jens Axboe
Browse files

block: check for max_hw_sectors underflow



The logical block size need to be smaller than the max_hw_sector
setting, otherwise we can't even transfer a single LBA.

Signed-off-by: default avatarHannes Reinecke <hare@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarJohn Garry <john.g.garry@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e528bede
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