From: Roland Dreier Date: Tue, 4 Nov 2008 18:34:48 +0000 (-0800) Subject: libata: Avoid overflow in ata_tf_read_block() when tf->hba_lbal > 127 X-Git-Tag: v2.6.28-rc5~88^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44901a96847b9967c057832b185e2f34ee6a14e5;p=pandora-kernel.git libata: Avoid overflow in ata_tf_read_block() when tf->hba_lbal > 127 Phillip O'Donnell pointed out that the same sign extension bug that was fixed in commit ba14a9c2 ("libata: Avoid overflow in ata_tf_to_lba48() when tf->hba_lbal > 127") also appears to exist in ata_tf_read_block(). Fix this by adding a cast to u64. Signed-off-by: Roland Dreier Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed