[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)
commit00876ae85b47cdfe76aa08b1fffb27fd67425f53
tree566e67e1d86f2280aad0f2337d7b52ad2955ca9f
parente9f4f418076f7d08a73667472b5f74a02965221d
[SCSI] qla2xxx: Fix crash during firmware dump procedure.

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>
drivers/scsi/qla2xxx/qla_dbg.c
drivers/scsi/qla2xxx/qla_init.c