[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c14bc7fa-5692-4952-ac83-ed14c65ed821@csgroup.eu>
Date: Mon, 26 Aug 2024 19:23:00 +0200
From: Christophe Leroy <christophe.leroy@...roup.eu>
To: Diogo Jahchan Koike <djahchankoike@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
syzbot+ec369e6d58e210135f71@...kaller.appspotmail.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [patch net-next v2] net: ethtool: fix unheld rtnl lock
Hi Diogo,
Le 26/08/2024 à 19:00, Diogo Jahchan Koike a écrit :
> [Vous ne recevez pas souvent de courriers de djahchankoike@...il.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]
>
> Hi Maxime
>
> Thanks for the clarification, I missed that. Should I resend my first patch
> or should I release the lock before every return (tbh, I feel like that may
> lead to a lot of repeated code) and send a new patch?
>
Do not duplicate release lock before every return.
See
https://docs.kernel.org/process/coding-style.html#centralized-exiting-of-functions
Christophe
Powered by blists - more mailing lists