]> git.baikalelectronics.ru Git - kernel.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)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 5 Mar 2008 20:57:57 +0000 (14:57 -0600)
commitf948b6c53720989c0c5b74406d237c2a31a38776
tree1835811c57a5022f8f0724d00fa57abcf3e744c7
parent12b3239f5bd2c54e158713a06b55b57174a66ac7
[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>
drivers/message/fusion/mptsas.c