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