[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87v7jej9i8.fsf@jax.kurt.home>
Date: Thu, 13 Nov 2025 15:24:31 +0100
From: Kurt Kanzenbach <kurt@...utronix.de>
To: Pavel Zhigulin <Pavel.Zhigulin@...persky.com>
Cc: Pavel Zhigulin <Pavel.Zhigulin@...persky.com>, Andrew Lunn
<andrew@...n.ch>, Vladimir Oltean <olteanv@...il.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Richard Cochran
<richardcochran@...il.com>, Florian Fainelli <f.fainelli@...il.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: Re: [PATCH net] net: dsa: hellcreek: fix missing error handling in
LED registration
On Thu Nov 13 2025, Pavel Zhigulin wrote:
> The LED setup routine registered both led_sync_good
> and led_is_gm devices without checking the return
> values of led_classdev_register(). If either registration
> failed, the function continued silently, leaving the
> driver in a partially-initialized state and leaking
> a registered LED classdev.
>
> Add proper error handling
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: 7d9ee2e8ff15 ("net: dsa: hellcreek: Add PTP status LEDs")
> Signed-off-by: Pavel Zhigulin <Pavel.Zhigulin@...persky.com>
Acked-by: Kurt Kanzenbach <kurt@...utronix.de>
Download attachment "signature.asc" of type "application/pgp-signature" (862 bytes)
Powered by blists - more mailing lists