diff options
author | Tejun Heo <htejun@gmail.com> | 2009-08-16 21:21:21 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-24 08:47:35 -0700 |
commit | 8dee92cc72924326b360e06f08b05d79e9833c3c (patch) | |
tree | 0eb5d3357aab46cdab15c6913d644a58b6430ca0 /arch | |
parent | 40871a7698c984d211ed86007df949677d6d2a51 (diff) | |
download | lwn-8dee92cc72924326b360e06f08b05d79e9833c3c.tar.gz lwn-8dee92cc72924326b360e06f08b05d79e9833c3c.zip |
libata: fix off-by-one error in ata_tf_read_block()
commit ac8672ea922bde59acf50eaa1eaa1640a6395fd2 upstream.
ata_tf_read_block() has off-by-one error when converting CHS address
to LBA. The bug isn't very visible because ata_tf_read_block() is
used only when generating sense data for a failed RW command and CHS
addressing isn't used too often these days.
This problem was spotted by Atsushi Nemoto.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions