macvtap: Don't leak unreceived packets when we delete a macvtap device.
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 20 Oct 2011 04:27:24 +0000 (04:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Oct 2011 06:53:07 +0000 (02:53 -0400)
commit2259fef0bb80a8fc842b5690b89a640464df2859
tree47ea67b829da2e1596a28f32536cf83e9dfbf436
parent047af9cfedfa357e1497e327eaa893253ca51971
macvtap: Don't leak unreceived packets when we delete a macvtap device.

To avoid leaking packets in the receive queue.  Add a socket destructor
that will run whenever destroy a macvtap socket.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c