Marek Lindner e7d7586381 batman-adv: fix hardif_neigh refcount on queue_work() failure
[ Upstream commit 4c4af6900844ab04c9434c972021d7b48610e06a ]

The hardif_neigh 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>
2018-10-20 09:51:30 +02:00
..
2018-05-16 10:08:44 +02:00
2018-04-13 19:48:29 +02:00
2016-10-20 11:23:08 -04:00
2018-09-26 08:36:30 +02:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00