Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05f7b7b3 authored by Michal Miroslaw's avatar Michal Miroslaw Committed by David S. Miller
Browse files

[NETFILTER]: nfnetlink_log: fix use after free



Paranoia: instance_put() might have freed the inst pointer when we
spin_unlock_bh().

Signed-off-by: default avatarMichal Miroslaw <mirq-linux@rere.qmqm.pl>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ed32abea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -393,8 +393,8 @@ static void nfulnl_timer(unsigned long data)

	spin_lock_bh(&inst->lock);
	__nfulnl_send(inst);
	instance_put(inst);
	spin_unlock_bh(&inst->lock);
	instance_put(inst);
}

/* This is an inline function, we don't really care about a long