Re: [PATCH net-next v8 10/17] net: pse-pd: Add support for PSE PIs

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

 



On Sun, 14 Apr 2024 16:21:59 +0200 Kory Maincent wrote:
> +	pis = of_get_child_by_name(np, "pse-pis");
> +	if (!pis) {
> +		/* no description of PSE PIs */
> +		pcdev->no_of_pse_pi = true;
> +		return 0;
> +	}
> +
> +	pcdev->pi = kcalloc(pcdev->nr_lines, sizeof(*pcdev->pi), GFP_KERNEL);
> +	if (!pcdev->pi)
> +		return -ENOMEM;

leaking reference on pis here

> +
> +	for_each_child_of_node(pis, node) {
> +		struct pse_pi pi = {0};
> +		u32 id;




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux