[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3918d367-e29b-405c-a58a-7c4e813c3cff@web.de>
Date: Mon, 18 Nov 2024 11:42:22 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Charles Han <hanchunchao@...pur.com>, linux-pm@...r.kernel.org,
Georgi Djakov <djakov@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] interconnect: Add NULL check in icc_clk_register()
> devm_kasprintf() can return a NULL pointer on failure,but this
> returned value in icc_clk_register() is not checked.
> Add NULL check in icc_clk_register(), to handle kernel NULL
> pointer dereference error.
Another wording suggestion:
devm_kasprintf() calls can return a null pointer on failure.
But such a return value was not checked in this function implementation.
Thus add corresponding checks so that null pointer dereferences
will be avoided.
Regards,
Markus
Powered by blists - more mailing lists