From: Alan Date: Mon, 8 Jan 2007 12:10:05 +0000 (+0000) Subject: libata-sff: Don't try and activate channels which are not in use X-Git-Tag: v2.6.21-rc1~274^2~529 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4112e16a7c606a80810d22d55bfc742eaa61fecb;p=pandora-kernel.git libata-sff: Don't try and activate channels which are not in use An ATA controller in native mode may have one or more channels disabled and not assigned resources. In that case the existing code crashes trying to access I/O ports 0-7. Add the neccessary check. Signed-off-by: Alan Cox Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed