[NETLINK]: Fix use-after-free in netlink_recvmsg
authorPatrick McHardy <kaber@trash.net>
Mon, 13 Mar 2006 04:34:27 +0000 (20:34 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 13 Mar 2006 04:39:38 +0000 (20:39 -0800)
commitcc9a06cd8d6fbb69b4d3c46760c132cfe312fb85
treec6dce78c5e845d9cd4d5baab7c8b29306fa77541
parentf8dc01f543f28253abeef649987249210d8db3cc
[NETLINK]: Fix use-after-free in netlink_recvmsg

The skb given to netlink_cmsg_recv_pktinfo is already freed, move it up
a few lines.

Coverity #948

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c