macvlan: fix leak in macvlan_handle_frame
commite639b8d8a7a728f0b05ef2df6cb6b45dc3d4e556
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 16 Nov 2015 21:54:20 +0000 (16 22:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2015 19:39:29 +0000 (17 14:39 -0500)
tree34273bbcc5b651b9a9f2ce16548313e6e05ee09c
parenta534dc529853c69e94994aa47c1d80a03ce2c11d
macvlan: fix leak in macvlan_handle_frame

Reset pskb in macvlan_handle_frame in case skb_share_check returned a
clone.

Fixes: 8a4eb5734e8d ("net: introduce rx_handler results and logic around that")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c