[SCSI] qla2xxx: Fix request queue null dereference.
authorChad Dupuis <chad.dupuis@qlogic.com>
Thu, 3 Oct 2013 07:21:13 +0000 (03:21 -0400)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 23 Oct 2013 13:09:18 +0000 (14:09 +0100)
commit36008cf118235cee49b6753455f33b6f2c3a7543
tree2be4076b1a68ee1b3470ac9bebdaada10ad0ed63
parent6541932ea2f7de0b0c5203decf666b143ad5fa33
[SCSI] qla2xxx: Fix request queue null dereference.

If an invalid IOCB is returned on the response queue then the index into the
request queue map could be invalid and could return to us a bogus value. This
could cause us to try to deference an invalid pointer and cause an exception.

If we encounter this condition, simply return as no context can be established
for this response.

Signed-off-by: Chad Dupuis <chad.dupuis@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_isr.c