From: Haishuang Yan <hidden> Date: 2017-12-16 02:49:03
If md is NULL, tun_dst must be freed, otherwise it will cause memory
leak.
Fixes: 1a66a836da6 ("gre: add collect_md mode to ERSPAN tunnel")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
Change since v2:
* Rebase on latest master branch.
* Correct wrong fix information.
---
net/ipv4/ip_gre.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
From: Haishuang Yan <hidden> Date: 2017-12-16 02:49:18
If md is NULL, tun_dst must be freed, otherwise it will cause memory
leak.
Fixes: ef7baf5e083c ("ip6_gre: add ip6 erspan collect_md mode")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
Change since v2:
* Rebase on latest master branch.
* Correct wrong fix information.
---
net/ipv6/ip6_gre.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
From: David Miller <davem@davemloft.net> Date: 2017-12-19 15:36:39
From: Haishuang Yan <redacted>
Date: Sat, 16 Dec 2017 10:48:38 +0800
If md is NULL, tun_dst must be freed, otherwise it will cause memory
leak.
Fixes: 1a66a836da6 ("gre: add collect_md mode to ERSPAN tunnel")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
Change since v2:
* Rebase on latest master branch.
* Correct wrong fix information.
Please do not put a changelog after the fixes and signoff tags, those tags must
appear last in the commit message.
Thank you.
From: David Miller <davem@davemloft.net> Date: 2017-12-19 15:36:59
From: Haishuang Yan <redacted>
Date: Sat, 16 Dec 2017 10:48:39 +0800
If md is NULL, tun_dst must be freed, otherwise it will cause memory
leak.
Fixes: ef7baf5e083c ("ip6_gre: add ip6 erspan collect_md mode")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
Change since v2:
* Rebase on latest master branch.
* Correct wrong fix information.
Likewise, please place the tags at the end of the commit message.
From: Haishuang Yan <hidden> Date: 2017-12-20 01:33:45
On 2017年12月19日, at 下午11:36, David Miller [off-list ref] wrote:
From: Haishuang Yan <redacted>
Date: Sat, 16 Dec 2017 10:48:38 +0800
quoted
If md is NULL, tun_dst must be freed, otherwise it will cause memory
leak.
Fixes: 1a66a836da6 ("gre: add collect_md mode to ERSPAN tunnel")
Cc: William Tu <redacted>
Signed-off-by: Haishuang Yan <redacted>
Change since v2:
* Rebase on latest master branch.
* Correct wrong fix information.
Please do not put a changelog after the fixes and signoff tags, those tags must
appear last in the commit message.
Thank you.