aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-24 19:55:22 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2009-07-30 14:38:58 -0700
commit29104c8829cd5c5eabff413ecf423c194523840d (patch)
treee54bab5919bdb10b03a9a9471b963fb7690da25f /fs
parent302ab600b70cd26301791a994ddfe173b0e8a488 (diff)
SCSI: zalon: fix oops on attach failure
commit d3a263a8168f78874254ea9da9595cfb0f3e96d7 upstream. 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. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions