scsi: mpt3sas: Signedness bug in _base_get_diag_triggers()
The "trigger_flags" variable needs to be signed for the error checking to
work.
Link: https://lore.kernel.org/r/X9DZH37bYPHwSQRP@mwanda
Fixes: aec93e8e23
("scsi: mpt3sas: Add persistent trigger pages support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
52abca64fd
commit
8b3c803529
|
@ -5027,7 +5027,7 @@ _base_check_for_trigger_pages_support(struct MPT3SAS_ADAPTER *ioc)
|
|||
static void
|
||||
_base_get_diag_triggers(struct MPT3SAS_ADAPTER *ioc)
|
||||
{
|
||||
u16 trigger_flags;
|
||||
int trigger_flags;
|
||||
|
||||
/*
|
||||
* Default setting of master trigger.
|
||||
|
|
Loading…
Reference in New Issue