]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: iscsi: Fix harmless double shift bug
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 21 Apr 2022 15:03:52 +0000 (18:03 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:01 +0000 (23:23 -0400)
commit1a01fc2e69efa9d59b6259f3f564af87f33fd87e
tree87d1afef6922a8a64e92379891be11837653cf38
parent281599c7be615b5430946657e7cd58a89054a4c1
scsi: iscsi: Fix harmless double shift bug

These flags are supposed to be bit numbers.  Right now they cause a double
shift bug where we use BIT(BIT(2)) instead of BIT(2).  Fortunately, the bit
numbers are small and it's done consistently so it does not cause an issue
at run time.

Link: https://lore.kernel.org/r/YmFyWHf8nrrx+SHa@kili
Fixes: bfc38cb7416d ("scsi: iscsi: Merge suspend fields")
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/scsi/libiscsi.h