]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: aacraid: Correct hba_send to include iu_type
authorDave Carroll <david.carroll@microsemi.com>
Wed, 25 Apr 2018 16:24:20 +0000 (10:24 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 May 2018 03:27:18 +0000 (23:27 -0400)
commitc265677749824837929390dd8c03e1512c8dd0ac
tree1014872fb2e071907eeb4206c266c6ae86d5812c
parent693420c975da02589b2ef967caede3b6945492fd
scsi: aacraid: Correct hba_send to include iu_type

commit 8bb9b7181404 ("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: 8bb9b71814043 ("aacraid: enable sending of TMFs from aac_hba_send()")
Fixes: a324f350fcf60 ("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>
drivers/scsi/aacraid/commsup.c