xfrm: free skb if nlsk pointer is NULL
authorFlorian Westphal <fw@strlen.de>
Mon, 25 Jun 2018 12:00:07 +0000 (14:00 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 25 Jun 2018 14:43:36 +0000 (16:43 +0200)
commit86126b77dcd551ce223e7293bb55854e3df05646
tree2008dc902f74a3f7fe026df3f6e8dd5584df2f61
parent8cc88773855f988d6a3bbf102bbd9dd9c828eb81
xfrm: free skb if nlsk pointer is NULL

nlmsg_multicast() always frees the skb, so in case we cannot call
it we must do that ourselves.

Fixes: 21ee543edc0dea ("xfrm: fix race between netns cleanup and state expire notification")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c