]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCSI: mpt fusion: don't oops if NumPhys==0
authorKrzysztof Oledzki <olel@ans.pl>
Tue, 4 Mar 2008 22:56:23 +0000 (14:56 -0800)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:42 +0000 (11:47 -0700)
commit282dac698e338351d3b9fb9db2739fe07e1c2ef9
tree81b36b290d7fbab24f8db5bce6a87fa8e82cfb90
parent94429518999e4e6b8f84807afa4bf089a63da0b4
SCSI: mpt fusion: don't oops if NumPhys==0

Don't oops if NumPhys==0, instead return -ENODEV.
This patch fixes http://bugzilla.kernel.org/show_bug.cgi?id=9909

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>
Acked-by: Eric Moore <Eric.Moore@lsi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/message/fusion/mptsas.c