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)
commitdd9c4eff77fc7412fa79a1a05a2dec2469cc8ca8
tree30dd0d40c8eed803149bf2783b95b5165ea1ba1c
parentd29fb7360ee61ec02257e9c49848c9d2a05345a0
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