Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme-core: check for too small lba shift
[ Upstream commit 74fbc88 ] The block layer doesn't support logical block sizes smaller than 512 bytes. The nvme spec doesn't support that small either, but the driver isn't checking to make sure the device responded with usable data. Failing to catch this will result in a kernel bug, either from a division by zero when stacking, or a zero length bio. Reviewed-by: Jens Axboe <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information