From: Anton Ivanov <anton.ivanov@cambridgegreys.com>
To: Minjie Du <duminjie@vivo.com>,
richard@nod.at, johannes@sipsolutions.net, sfr@canb.auug.org.au,
linux-um@lists.infradead.org, linux-kernel@vger.kernel.org,
11162212@vivo.com
Cc: opensource.kernel@vivo.com
Subject: Re: [PATCH v2] drivers: use free_netdev before return
Date: Mon, 3 Jul 2023 14:19:38 +0100 [thread overview]
Message-ID: <aa29acfe-0973-54dc-a4d8-2b0f06dc805c@cambridgegreys.com> (raw)
In-Reply-To: <20230703131129.8588-1-duminjie@vivo.com>
On 03/07/2023 14:11, Minjie Du wrote:
> We will replace the old version of
> undo_user_init and use out_free_netdev
>
> Signed-off-by: Minjie Du <duminjie@vivo.com>
> ---
> arch/um/drivers/vector_kern.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c
> index af7f6fd4c..7ae6ab8df 100644
> --- a/arch/um/drivers/vector_kern.c
> +++ b/arch/um/drivers/vector_kern.c
> @@ -1646,7 +1646,7 @@ static void vector_eth_configure(
> err = register_netdevice(dev);
> rtnl_unlock();
> if (err)
> - goto out_undo_user_init;
> + goto out_free_netdev;
>
> spin_lock(&vector_devices_lock);
> list_add(&device->list, &vector_devices);
> @@ -1654,9 +1654,6 @@ static void vector_eth_configure(
>
> return;
>
> -out_undo_user_init:
> - free_netdev(dev);
> - return;
> out_free_netdev:
> free_netdev(dev);
> out_free_device:
Acked-By: "Anton Ivanov" <anton.ivanov@cambridgegreys.com>
--
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/
prev parent reply other threads:[~2023-07-03 13:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 13:11 Minjie Du
2023-07-03 13:19 ` Anton Ivanov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa29acfe-0973-54dc-a4d8-2b0f06dc805c@cambridgegreys.com \
--to=anton.ivanov@cambridgegreys.com \
--cc=11162212@vivo.com \
--cc=duminjie@vivo.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-um@lists.infradead.org \
--cc=opensource.kernel@vivo.com \
--cc=richard@nod.at \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®