]> git.baikalelectronics.ru Git - kernel.git/commit
qla2xxx: fix crash due to task mgmt cmd type
authorHimanshu Madhani <himanshu.madhani@qlogic.com>
Thu, 25 Sep 2014 10:14:50 +0000 (06:14 -0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Sep 2014 12:25:07 +0000 (14:25 +0200)
commitd4d56b0043d9f94077f7eb9b5946b6a4f7f0d95f
tree30dd0d40c8eed803149bf2783b95b5165ea1ba1c
parent46d7f9f52ad11ab24ee8405c557d2f0397543f2c
qla2xxx: fix crash due to task mgmt cmd type

tcm_qla2xxx_get_task_tag incorrectly assume command is
qla_tgt_cmd.  Add check to see if it's a scsi cmd or
task mgmt command.

Signed-off-by: Quinn Tran <quinn.tran@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/tcm_qla2xxx.c