Re: [PATCH net-next] net: erspan: remove md NULL check

2017-12-26 Thread David Miller
From: William Tu Date: Thu, 21 Dec 2017 15:51:22 -0800 > The 'md' is allocated from 'tun_dst = ip_tun_rx_dst' and > since we've checked 'tun_dst', 'md' will never be NULL. > The patch removes it at both ipv4 and ipv6 erspan. > > Fixes: afb4c97d90e6 ("ip6_gre: fix potential memory leak in ip6ersp

[PATCH net-next] net: erspan: remove md NULL check

2017-12-21 Thread William Tu
The 'md' is allocated from 'tun_dst = ip_tun_rx_dst' and since we've checked 'tun_dst', 'md' will never be NULL. The patch removes it at both ipv4 and ipv6 erspan. Fixes: afb4c97d90e6 ("ip6_gre: fix potential memory leak in ip6erspan_rcv") Fixes: 50670b6ee9bc ("ip_gre: fix potential memory leak in