[SCSI] qla2xxx: Fix crash during firmware dump procedure.
authorArun Easi <arun.easi@qlogic.com>
Mon, 25 Mar 2013 06:21:37 +0000 (02:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 6 Apr 2013 10:30:16 +0000 (11:30 +0100)
System crashes, in initiator mode operation, with
qla2xxx_copy_atioqueues() in stack trace when firmware dump is
attempted.

Check for atio_q_length alone does not indicate if atio_ring is
allocated, make explicit check of atio_ring to avoid the crash.

Applicable to ISP24xx, ISP25xx, ISP81xx & ISP83xx line of HBAs.

Signed-off-by: Arun Easi <arun.easi@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>

No differences found