macvtap: correctly free skb during socket destruction
authorJason Wang <jasowang@redhat.com>
Tue, 19 Jul 2016 03:02:59 +0000 (11:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jul 2016 05:11:22 +0000 (22:11 -0700)
commit0d7eacbe637952fc737a968bc16db1f2ccbbe71c
treebae9ec84351a22aafda64962dd5ef90659cee9f2
parent2186f6eec2739ecd3944f9278e59edf0474f207c
macvtap: correctly free skb during socket destruction

We should use kfree_skb() instead of kfree() to free an skb.

Fixes: 362899b8725b ("macvtap: switch to use skb array")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c