From: Tejun Heo Date: Sun, 16 Aug 2009 12:21:21 +0000 (+0900) Subject: libata: fix off-by-one error in ata_tf_read_block() X-Git-Tag: v2.6.27.35~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dee92cc72924326b360e06f08b05d79e9833c3c;p=pandora-kernel.git 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 Reported-by: Atsushi Nemoto Signed-off-by: Jeff Garzik Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed