Re: [PATCH] PCI: kirin: fix memory leak in kirin_pcie_parse_port()

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

 



> The conversion of this file to use the agnostic GPIO API has introduced
> a new early return where the refcounts of two device nodes (parent and
> child) are not decremented.
> 
> Given that the device nodes are not required outside the loops where
> they are used, and to avoid potential bugs every time a new error path
> is introduced to the loop, the _scoped() versions of the macros have
> been applied. The bug was introduced recently, and the fix is not
> relevant for old stable kernels that might not support the scoped()
> variant.

Applied to controller/kirin, thank you!

[1/1] PCI: kirin: Fix memory leak in kirin_pcie_parse_port()
      https://git.kernel.org/pci/pci/c/1a164371b362

	Krzysztof




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux