Re: [PATCH] RDMA/hfi: Decrease PCI device reference count in error path

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

 



On Thu, 17 Nov 2022 21:15:46 +0800, Xiongfeng Wang wrote:
> pci_get_device() will increase the reference count for the returned
> pci_dev, and also decrease the reference count for the input parameter
> *from* if it is not NULL.
> 
> If we break out the loop in node_affinity_init() with 'dev' not NULL, we
> need to call pci_dev_put() to decrease the reference count. Add missing
> pci_dev_put() in error path.
> 
> [...]

Applied, thanks!

[1/1] RDMA/hfi: Decrease PCI device reference count in error path
      https://git.kernel.org/rdma/rdma/c/9b51d072da1d27

Best regards,
-- 
Leon Romanovsky <leon@xxxxxxxxxx>



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux