]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix improper flag check for IO type
authorJames Smart <jsmart2021@gmail.com>
Wed, 18 Dec 2019 23:58:07 +0000 (15:58 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 21 Dec 2019 18:42:42 +0000 (13:42 -0500)
commit25efd632efc2a5a23e2b7a268f2cb3c789c3f181
tree5cc46827e55ad4747760f8605dca3cfa76c951df
parent29c6b95e04c7e9d08bdb0d836d39cbd2441706ae
scsi: lpfc: Fix improper flag check for IO type

Current driver code looks at iocb types and uses a "==" comparison on the
flags to determine type. If another flag were set, it would disrupt the
comparison.

Fix by converting to a bitwise & operation.

Link: https://lore.kernel.org/r/20191218235808.31922-10-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c