[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120701.202610.12425223200611171.davem@davemloft.net>
Date: Sun, 01 Jul 2012 20:26:10 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: roy.qing.li@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next 1/2] ipv6: remove unnecessary codes in
tcp_ipv6.c
From: roy.qing.li@...il.com
Date: Mon, 2 Jul 2012 11:18:59 +0800
> - if (opt) {
> - newnp->opt = ipv6_dup_options(newsk, opt);
> - if (opt != np->opt)
> - sock_kfree_s(sk, opt, opt->tot_len);
This is bogus, if we copy the options into a new copy in
ipv6_dup_options() we have to free the old one or else we
leak it.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists