Re: [PATCH 1/2] ip_gre: fix potential memory leak in erspan_rcv

2017-12-14 Thread 严海双
> On 2017年12月15日, at 上午2:47, William Tu wrote: > > On Thu, Dec 14, 2017 at 7:15 AM, Haishuang Yan > wrote: >> If md is NULL, tun_dst must be freed, otherwise it will cause memory >> leak. >> >> Fixes: 84e54fe0a5ea ("gre: introduce native

Re: [PATCH 1/2] ip_gre: fix potential memory leak in erspan_rcv

2017-12-14 Thread 严海双
> On 2017年12月15日, at 上午2:47, William Tu wrote: > > On Thu, Dec 14, 2017 at 7:15 AM, Haishuang Yan > wrote: >> If md is NULL, tun_dst must be freed, otherwise it will cause memory >> leak. >> >> Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") >> Cc: William Tu >>

Re: [PATCH 1/2] ip_gre: fix potential memory leak in erspan_rcv

2017-12-14 Thread William Tu
On Thu, Dec 14, 2017 at 7:15 AM, Haishuang Yan wrote: > If md is NULL, tun_dst must be freed, otherwise it will cause memory > leak. > > Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") > Cc: William Tu >

Re: [PATCH 1/2] ip_gre: fix potential memory leak in erspan_rcv

2017-12-14 Thread William Tu
On Thu, Dec 14, 2017 at 7:15 AM, Haishuang Yan wrote: > If md is NULL, tun_dst must be freed, otherwise it will cause memory > leak. > > Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") > Cc: William Tu > Signed-off-by: Haishuang Yan > --- > net/ipv4/ip_gre.c | 4 +++- >

[PATCH 1/2] ip_gre: fix potential memory leak in erspan_rcv

2017-12-14 Thread Haishuang Yan
If md is NULL, tun_dst must be freed, otherwise it will cause memory leak. Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") Cc: William Tu Signed-off-by: Haishuang Yan --- net/ipv4/ip_gre.c | 4 +++- 1 file changed,

[PATCH 1/2] ip_gre: fix potential memory leak in erspan_rcv

2017-12-14 Thread Haishuang Yan
If md is NULL, tun_dst must be freed, otherwise it will cause memory leak. Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") Cc: William Tu Signed-off-by: Haishuang Yan --- net/ipv4/ip_gre.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git