mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: zhaofeng2@cmss.chinamobile.com
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] soc: dove: fix OF node leak in dove_init_pmu()
Date: Fri, 27 Nov 2026 15:46:42 +0100	[thread overview]
Message-ID: <0c93419e-11d4-473a-a01b-689e7c33ab3e@lunn.ch> (raw)
In-Reply-To: <20261127074219.1188-1-zhaofeng2@cmss.chinamobile.com>

> @@ -451,5 +454,7 @@
>  			pr_err("dove_init_pmu_irq() failed: %d\n", ret);
>  	}
>  
> -	return 0;
> -}
> +	of_node_put(domains_node);
> +
> +	return 0;
> +}

The logic of the change looks O.K. But this hunk looks odd. I would
expect it to be:

+
+	of_node_put(domains_node);
+
 	return 0;
 }

i.e. insert the put. Why did it replace the return 0;. Is there a
space/tab issue here?

	  Andrew

  reply	other threads:[~2026-11-27 14:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  7:42 zhaofeng2
2026-11-27 14:46 ` Andrew Lunn [this message]
2026-11-30  3:38 ` [PATCH v2] soc: dove: fix OF node leaks " zhaofeng2
2026-11-30 13:01   ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0c93419e-11d4-473a-a01b-689e7c33ab3e@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zhaofeng2@cmss.chinamobile.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®