From: James Bottomley Date: Wed, 24 Jun 2009 19:55:22 +0000 (+0000) Subject: [SCSI] zalon: fix oops on attach failure X-Git-Tag: v2.6.31-rc2~11^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a263a8168f78874254ea9da9595cfb0f3e96d7;p=pandora-kernel.git [SCSI] zalon: fix oops on attach failure I recently discovered on my zalon that if the attachment fails because of a bus misconfiguration (I scrapped my HVD array, so the card is now unterminated) then the system oopses. The reason is that if ncr_attach() returns NULL (signalling failure) that NULL is passed by the goto failed straight into ncr_detach() which oopses. The fix is just to return -ENODEV in this case. Cc: Stable Tree Signed-off-by: James Bottomley --- Reading git-diff-tree failed