From: James Bottomley Date: Fri, 18 Apr 2008 18:18:48 +0000 (-0500) Subject: libata: fix boot panic with SATAPI devices on non-SFF HBAs X-Git-Tag: v2.6.26-rc1~1142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=855d854a33fca71cf68bad258bd5e66e5b265d10;p=pandora-kernel.git libata: fix boot panic with SATAPI devices on non-SFF HBAs The kernel now panics reliably on boot if you have a SATAPI device connected. The problem was introduced by the libata merge trying to pull out all the SFF code into a separate module. Unfortunately, if you're a satapi device you usually need to call atapi_request_sense, which has a bare invocation of a SFF callback which is NULL on non-SFF HBAs. Fix this by making the call conditional. Signed-off-by: James Bottomley Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed