[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 1 Jan 2024 10:46:45 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Willem de Bruijn <willemdebruijn.kernel@...il.com>,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Stephen Hemminger <stephen@...workplumber.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: Re: packet: Improve exception handling in fanout_add()
> It is fine to call kfree with a possible NULL pointer:
…
> * If @object is NULL, no operation is performed.
> */
> void kfree(const void *object)
Such a function call triggers an input parameter validation
with a corresponding immediate return, doesn't it?
Do you find such data processing really helpful for the desired error/exception handling?
Regards,
Markus
Powered by blists - more mailing lists