Yossi Kuperman e8a732d1bc udp: fix secpath leak
After commit dce4551cb2ad ("udp: preserve head state for IP_CMSG_PASSSEC")
we preserve the secpath for the whole skb lifecycle, but we also
end up leaking a reference to it.

We must clear the head state on skb reception, if secpath is
present.

Fixes: dce4551cb2ad ("udp: preserve head state for IP_CMSG_PASSSEC")
Signed-off-by: Yossi Kuperman <yossiku@mellanox.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-01 10:29:34 -07:00
..
2017-08-25 09:26:24 +02:00
2016-10-20 14:32:22 -04:00
2017-01-13 22:37:16 -05:00
2017-06-15 12:12:40 -04:00
2017-06-15 12:12:40 -04:00
2017-05-21 13:42:36 -04:00
2017-09-01 10:29:34 -07:00
2017-02-15 11:04:11 +01:00
2017-01-10 10:57:12 +01:00
2013-05-31 17:19:05 -07:00