commit | 1b98b79f711a690b48324d981546fea1665882ee | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Apr 25 10:54:51 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 27 13:51:07 2023 -0400 |
tree | 0954975e55a10550a7e4cec41e53f9d53d1acced | |
parent | 1d72811084cababf820a8539dcf73274e11b55d5 [diff] |
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: Simon Glass <sjg@chromium.org> Fixes: 68e6f221ed0 ("block: ide: Fix block read/write with driver model")