Re: packet: Improve exception handling in fanout_add()

Markus Elfring
2024-01-01T09:47:02Z

> 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