linux/net/batman-adv
Markus Elfring 5593e9abf1 batman-adv: Improve exception handling in batadv_throw_uevent()
The kfree() function was called in up to three cases by
the batadv_throw_uevent() function during error handling
even if the passed variable contained a null pointer.
This issue was detected by using the Coccinelle software.

* Thus adjust jump targets.

* Reorder kfree() calls at the end.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
2024-01-27 09:13:59 +01:00
..
2021-06-02 08:46:03 +02:00
2021-08-19 09:02:55 +09:00
2024-01-27 09:13:58 +01:00