]> 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)
commit61f3d51e06d14d40fdc2e8772ac82d0515e148ec
tree30dd0d40c8eed803149bf2783b95b5165ea1ba1c
parent00f3aa7274f2559a3daab95d8f121ef0c5c8c92d
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