From: Jordan Crouse Date: Wed, 1 Aug 2007 21:46:42 +0000 (+0200) Subject: ide: Fix an overrun found in the CS5535 IDE driver X-Git-Tag: v2.6.23-rc2~23^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a70a817acbb96fcfcc7543932222467c771207;p=pandora-kernel.git ide: Fix an overrun found in the CS5535 IDE driver As found by the Coverity checker, and reported by Adrian Bunk, this fixes a overrun error in the CS5535 IDE driver. Somebody got a little excited with the if() statement - the CS5535 only supports UDMA 0-4. Bart: Not a bug per se since the upper layer will never feed this function with speed > XFER_UDMA_4 (thanks to ->ultra_mask being set to 0x1f). Worth fixing anyway. Signed-off-by: Jordan Crouse Cc: Adrian Bunk Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed