lkml.org 
[lkml]   [2024]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH net-next v8 10/17] net: pse-pd: Add support for PSE PIs
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;

\
 
 \ /
  Last update: 2024-05-27 16:41    [W:0.162 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site