]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix backbone_gw refcount on queue_work() failure
authorMarek Lindner <mareklindner@neomailbox.ch>
Thu, 6 Sep 2018 21:45:54 +0000 (05:45 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 7 Sep 2018 06:14:26 +0000 (08:14 +0200)
commit1f93b57e88bb3fb66e26f572ddf76c7ed51dd870
treed592b0145aeacf2904f929d8d5acd07553c23c15
parent9a694e34921dff4a5578090b65782ac6bbe43887
batman-adv: fix backbone_gw refcount on queue_work() failure

The backbone_gw refcounter is to be decreased by the queued work and
currently is never decreased if the queue_work() call fails.
Fix by checking the queue_work() return value and decrease refcount
if necessary.

Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/bridge_loop_avoidance.c