summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-09-01 18:29:29 +0200
committerSven Eckelmann <sven@narfation.org>2026-09-06 20:05:31 +0200
commit4c0a6a5b77152dce07804a60a453c779619a79d5 (patch)
treef70a97ca8892a7ffb40d9800d954b15d420bc3a7 /include/linux/timerqueue.h
parent6d7f71ae4cdcbb22f541638057299fe26c451e65 (diff)
batman-adv: bla: avoid double free after failed backbone_hash alloc
When batadv_bla_init() fails to initialize the backbone_hash, it is freeing the (previously) allocated claim_hash. The initialization function will then return an error and the net_device initialization will stop. The destructor will be called instead and (indirectly via batadv_mesh_free() -> batadv_bla_free()) will try to free the bat_priv->bla.claim_hash again. The pointer must therefore be set to NULL after freeing it in the initialization error path. Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://sashiko.dev/#/patchset/20260831135117.574836-1-sw%40simonwunderlich.de?part=6 Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions