Re: [PATCH] target/configfs: delete unnecessary checks for NULL

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

 



On Thu, 18 Nov 2021 11:49:00 +0300, Dan Carpenter wrote:

> The "item" pointer is always going to be valid pointer and does not
> need to be checked.
> 
> But if "item" were NULL then item_to_lun() would not return a NULL, but
> instead, the container_of() pointer math would return a value in the
> error pointer range.  This confuses static checkers since it looks like
> a NULL vs IS_ERR() bug.
> 
> [...]

Applied to 5.16/scsi-fixes, thanks!

[1/1] target/configfs: delete unnecessary checks for NULL
      https://git.kernel.org/mkp/scsi/c/9c6603e1faf8

-- 
Martin K. Petersen	Oracle Linux Engineering



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux