[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220712182636.53a957cc@kernel.org>
Date: Tue, 12 Jul 2022 18:26:36 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Tony Nguyen <anthony.l.nguyen@...el.com>
Cc: davem@...emloft.net, pabeni@...hat.com, edumazet@...gle.com,
Przemyslaw Patynowski <przemyslawx.patynowski@...el.com>,
netdev@...r.kernel.org,
Mateusz Palczewski <mateusz.palczewski@...el.com>,
Marek Szlosek <marek.szlosek@...el.com>
Subject: Re: [PATCH net 4/7] iavf: Fix NULL pointer dereference in
iavf_get_link_ksettings
On Mon, 11 Jul 2022 16:02:40 -0700 Tony Nguyen wrote:
> + /* if VF failed initialization during __IAVF_INIT_GET_RESOURCES,
> + * it is possible for this variable to be freed there.
> + */
> + if (!adapter->vf_res)
> + return -EAGAIN;
I think I already rejected a similar patch in the past.
ethtool APIs should not return -EAGAIN, if the driver needs to wait
for some init or reset to finish -- it should just wait, we can't
throw errors at user space and hope it will retry.
Powered by blists - more mailing lists