]> www.infradead.org Git - users/jedix/linux-maple.git/commit
batman-adv: fix hardif_neigh refcount on queue_work() failure
authorMarek Lindner <mareklindner@neomailbox.ch>
Thu, 6 Sep 2018 21:45:55 +0000 (05:45 +0800)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 7 Sep 2018 06:14:26 +0000 (08:14 +0200)
commit4c4af6900844ab04c9434c972021d7b48610e06a
tree29a6de6b545080cd75b59576be49320c91cef869
parent5af96b9c59c72fb2af2d19c5cc2f3cdcee391dff
batman-adv: fix hardif_neigh refcount on queue_work() failure

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>
net/batman-adv/bat_v_elp.c