Files
linux/drivers
Wei Xu c33ee15b38 tun: free skb in early errors
tun_recvmsg() supports accepting skb by msg_control after
commit ac77cfd425 ("tun: support receiving skb through msg_control"),
the skb if presented should be freed no matter how far it can go
along, otherwise it would be leaked.

This patch fixes several missed cases.

Signed-off-by: Wei Xu <wexu@redhat.com>
Reported-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-02 21:31:03 -05:00
..
2017-11-13 01:34:14 +01:00
2017-11-17 16:10:01 -08:00
2017-12-02 21:31:03 -05:00
2017-11-16 11:27:04 -07:00
2017-12-02 21:31:03 -05:00