Skip to content
Commit 49aa7784 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

ide: Correct LBA setting



Fix a longstanding bug where the LBA is calculated as the size of the
media instead of the number of blocks. This was perhaps not noticed
earlier since it prints the correct value first, before setting the wrong
value.

Drop the unnecessary blksz variable while we are here.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Fixes: 68e6f221 ("block: ide: Fix block read/write with driver model")
parent d7d57436
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment