Dave Carroll 7d3af7d96a scsi: aacraid: Correct hba_send to include iu_type
commit b60710ec7d7a ("scsi: aacraid: enable sending of TMFs from
aac_hba_send()") allows aac_hba_send() to send scsi commands, and TMF
requests, but the existing code only updates the iu_type for scsi
commands. For TMF requests we are sending an unknown iu_type to
firmware, which causes a fault.

Include iu_type prior to determining the validity of the command

Reported-by: Noah Misner <nmisner@us.ibm.com>
Fixes: b60710ec7d7ab ("aacraid: enable sending of TMFs from aac_hba_send()")
Fixes: 423400e64d377 ("aacraid: Include HBA direct interface")
Tested-by: Noah Misner <nmisner@us.ibm.com>
cc: stable@vger.kernel.org
Signed-off-by: Dave Carroll <david.carroll@microsemi.com>
Reviewed-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-05-01 23:27:18 -04:00
..
2018-04-03 17:38:39 -07:00
2018-03-15 00:35:43 -04:00
2018-04-03 17:38:39 -07:00
2018-04-03 17:38:39 -07:00
2018-04-05 15:05:53 -07:00
2017-12-18 13:55:43 -07:00
2018-04-05 15:05:53 -07:00
2018-04-03 17:38:39 -07:00
2018-04-05 15:05:53 -07:00
2017-12-04 20:32:53 -05:00
2017-12-04 20:32:53 -05:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2018-04-03 17:38:39 -07:00
2017-08-25 17:21:10 -04:00
2018-03-12 21:16:58 -04:00
2018-04-05 14:27:02 -07:00
2018-03-19 22:54:47 -04:00
2018-04-03 17:38:39 -07:00
2017-11-14 16:23:44 -08:00
2018-04-03 17:38:39 -07:00
2017-11-14 16:23:44 -08:00
2018-04-05 15:05:53 -07:00
2018-01-08 22:27:32 -05:00
2018-02-11 14:34:03 -08:00
2017-12-04 20:32:53 -05:00