[SCSI] mpt2sas: Introduced check for enclosure_handle to avoid crash
authorKashyap, Desai <kashyap.desai@lsi.com>
Fri, 7 Aug 2009 14:03:17 +0000 (19:33 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 13 Aug 2009 21:25:31 +0000 (16:25 -0500)
Kernel panic is seen because of enclosure_handle received from FW is zero.
Check is introduced before calling mpt2sas_config_get_enclosure_pg0.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found