[PATCH] pwm: mediatek: Ensure to disable clocks in error path
Uwe Kleine-König
u.kleine-koenig at baylibre.com
Wed Jul 9 01:01:26 PDT 2025
Hello,
On Mon, Jul 07, 2025 at 11:33:00AM +0200, AngeloGioacchino Del Regno wrote:
> Il 04/07/25 19:27, Uwe Kleine-König ha scritto:
> > After enabling the clocks each error path must disable the clocks again.
> > One of them failed to do so. Unify the error paths to use goto to make it
> > harder for future changes to add a similar bug.
> >
>
> I don't like gotos, but admittedly that's the cleanest option, so:
>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
I somehow missed your mail before I sent the patch to Linus for
inclusion into 6.16-rc6. Anyhow it's very appreciated even when spotting
it only today! Thank you and sorry for not honoring that by adding your
tag to the commit.
Best regards
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20250709/2ae943db/attachment.sig>
More information about the Linux-mediatek
mailing list