Re: [PATCH] net: sfp: Fix memory leak of hwmon_name on hwmon registration failure

From: Andrew Lunn

Date: Fri Aug 07 2026 - 10:20:12 EST


On Fri, Aug 07, 2026 at 12:52:58PM +0530, krishan mohan wrote:
> Hi All,
>
> Please find v2 of this patch. 
> Changes since v1: - Move hwmon_name cleanup to sfp_hwmon_remove(). - Free
> hwmon_name independently of hwmon_dev.

Please read:

https://docs.kernel.org/process/submitting-patches.html

and then submit a proper patch, following the process defined in this
document.

It is also important you start a new thread, otherwise the CI probably
does not work.

Andrew

---
pw-bot: cr