[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d5c788c2-846c-478d-93ba-29e0e81c3e40@web.de>
Date: Mon, 31 Mar 2025 14:08:30 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Henry Martin <bsdhenrymartin@...il.com>,
linux-perf-users@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Cc: LKML <linux-kernel@...r.kernel.org>, Mark Rutland <mark.rutland@....com>,
Will Deacon <will@...nel.org>
Subject: Re: [PATCH] drivers/perf: Add NULL check in tx2_uncore_pmu_register
> When devm_kasprintf() fails, it returns a NULL pointer. However, this return value is not properly checked in the function tx2_uncore_pmu_register.
>
> A NULL check should be added after the devm_kasprintf() to prevent potential NULL pointer dereference error.
* Please adhere to word wrapping preferences around 75 characters per text line.
* Would you like to choose the imperative mood for an improved change description?
https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14#n94
Regards,
Markus
Powered by blists - more mailing lists