summaryrefslogtreecommitdiff
path: root/net/batman-adv/netlink.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2024-01-02 09:52:21 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2024-01-27 11:13:59 +0300
commit5593e9abf1cf2bf096366d8c7fd933bc69d561ce (patch)
tree4ff69ffdf3dabdd2b7cdfd5e00c2255ca16ab199 /net/batman-adv/netlink.c
parentffc15626c861f811f9778914be004fcf43810a91 (diff)
downloadlinux-5593e9abf1cf2bf096366d8c7fd933bc69d561ce.tar.xz
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 'net/batman-adv/netlink.c')
0 files changed, 0 insertions, 0 deletions