[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <b1632d8b-d5c2-44dd-bec1-78aa0a71eb03@app.fastmail.com>
Date: Thu, 10 Apr 2025 12:56:06 +0200
From: "Arnd Bergmann" <arnd@...db.de>
To: "Charles Han" <hanchunchao@...pur.com>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Julien Panis" <jpanis@...libre.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] misc: tps6594-pfsm: Add NULL check in tps6594_pfsm_probe
On Thu, Apr 10, 2025, at 12:52, Charles Han wrote:
> + if (!pfsm->miscdev.name) {
> + devm_kfree(dev, pfsm);
> + return -ENOMEM;
> + }
Since this is the probe function, you don't need to call devm_kfree()
but just let devres take care of it.
Arnd
Powered by blists - more mailing lists