diff options
| author | 2024-01-02 07:52:21 +0100 | |
|---|---|---|
| committer | 2024-01-27 09:13:59 +0100 | |
| commit | 5593e9abf1cf2bf096366d8c7fd933bc69d561ce (patch) | |
| tree | 4ff69ffdf3dabdd2b7cdfd5e00c2255ca16ab199 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | batman-adv: Return directly after a failed batadv_dat_select_candidates() in batadv_dat_forward_data() (diff) | |
| download | wireguard-linux-5593e9abf1cf2bf096366d8c7fd933bc69d561ce.tar.xz wireguard-linux-5593e9abf1cf2bf096366d8c7fd933bc69d561ce.zip | |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions
