From: David Miller <davem@davemloft.net>
To: u9012063@gmail.com
Cc: netdev@vger.kernel.org, yanhaishuang@cmss.chinamobile.com
Subject: Re: [PATCH net-next] net: erspan: remove md NULL check
Date: Tue, 26 Dec 2017 17:34:10 -0500 (EST) [thread overview]
Message-ID: <20171226.173410.1282091674101483328.davem@davemloft.net> (raw)
In-Reply-To: <1513900282-8439-1-git-send-email-u9012063@gmail.com>
From: William Tu <u9012063@gmail.com>
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 ip6erspan_rcv")
> Fixes: 50670b6ee9bc ("ip_gre: fix potential memory leak in erspan_rcv")
> Cc: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
> Signed-off-by: William Tu <u9012063@gmail.com>
Applied.
prev parent reply other threads:[~2017-12-26 22:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-21 23:51 [PATCH net-next] net: erspan: remove md NULL check William Tu
2017-12-26 22:34 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171226.173410.1282091674101483328.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=u9012063@gmail.com \
--cc=yanhaishuang@cmss.chinamobile.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox