diff options
author | Keith Busch | 2023-11-28 09:36:04 -0800 |
---|---|---|
committer | Keith Busch | 2023-12-01 07:49:50 -0800 |
commit | 74fbc88e161424b3b96a22b23a8e3e1edab9d05c (patch) | |
tree | edecdcc0d0f7ba754c1a679b327f0046ffcc01db /drivers/md | |
parent | d8b90d600aff181936457f032d116dbd8534db06 (diff) |
nvme-core: check for too small lba shift
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 <axboe@kernel.dk>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions