[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3222b8fc-8591-4f26-a29f-c0aea7b2dfda@openvpn.net>
Date: Wed, 6 Mar 2024 15:59:32 +0100
From: Antonio Quartulli <antonio@...nvpn.net>
To: Jakub Kicinski <kuba@...nel.org>
Cc: netdev@...r.kernel.org, Sergey Ryazanov <ryazanov.s.a@...il.com>,
Paolo Abeni <pabeni@...hat.com>, Eric Dumazet <edumazet@...gle.com>
Subject: Re: [PATCH net-next v2 04/22] ovpn: add basic interface
creation/destruction/management routines
On 05/03/2024 20:40, Jakub Kicinski wrote:
> On Mon, 4 Mar 2024 16:08:55 +0100 Antonio Quartulli wrote:
>> + dev = alloc_netdev(sizeof(struct ovpn_struct), name, NET_NAME_USER, ovpn_setup);
>> +
>> + dev_net_set(dev, net);
>
> the dev allocation never fails? Or the error is handles somewhere else?
It definitely can fail and dev_net_set will crash.
My bad. Thanks for reporting this.
Regards,
--
Antonio Quartulli
OpenVPN Inc.
Powered by blists - more mailing lists