Re: [PATCH] lpfc: Fix less-than-zero comparison of unsigned value

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

 



On Mon, 6 Jul 2020 13:42:46 -0700, James Smart wrote:

> The expressions start_idx - dbg_cnt is evaluated using unsigned int
> arthithmetic (since these variables are unsigned ints) and hence can
> never be less than zero, so the less than comparison is never true.
> Re-write the expression to check for start_idx being less than dbg_cnt.
> 
> After the logic was corrected, temp_idx wasn't working correct. So fix it
> was fixed as well.

Applied to 5.9/scsi-queue, thanks!

[1/1] scsi: lpfc: Fix less-than-zero comparison of unsigned value
      https://git.kernel.org/mkp/scsi/c/77dd7d7b3442

-- 
Martin K. Petersen	Oracle Linux Engineering



[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