Re: [PATCH] scsi: stex: fix MU_MAX_DELAY typecheck

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/17/23 08:38, Arnd Bergmann wrote:
@@ -173,7 +173,7 @@ enum {
  	ST_ADDITIONAL_MEM_MIN			= 0x80000,
  	PMIC_SHUTDOWN				= 0x0D,
  	PMIC_REUMSE					= 0x10,
-	ST_IGNORED					= -1,
+	ST_IGNORED					= -1u,
  	ST_NOTHANDLED				= 7,
  	ST_S3						= 3,
  	ST_S4						= 4,

From drivers/scsi/stex.c:

int st_sleep_mic;

... st_sleep_mic == ST_IGNORED ...

Can changing ST_IGNORED from signed to unsigned break the stex driver?

Thanks,

Bart.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux