author | Marek Lindner <mareklindner@neomailbox.ch> | |
Thu, 6 Sep 2018 21:45:54 +0000 (05:45 +0800) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Sat, 20 Oct 2018 07:48:49 +0000 (09:48 +0200) | ||
commit | 3e9f714fb58b14d0cf5465dbec55b20b5446d607 | |
tree | 1d6188dad05c456a0d71b338b579ebb500229624 | tree | snapshot (tar.xz tar.gz zip) |
parent | 2b1c4897f2566956a1e0a59a63e58d043b4be009 | commit | diff |
batman-adv: fix backbone_gw refcount on queue_work() failure
[ Upstream commit 5af96b9c59c72fb2af2d19c5cc2f3cdcee391dff ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ Upstream commit 5af96b9c59c72fb2af2d19c5cc2f3cdcee391dff ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/batman-adv/bridge_loop_avoidance.c | diff | blob | history |