From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [REPOST patch net-next V6] net: introduce ethernet teaming device Date: Thu, 10 Nov 2011 07:53:03 +0100 Message-ID: <1320907983.16265.1.camel@edumazet-laptop> References: <1320876793-1158-1-git-send-email-jpirko@redhat.com> <1320880355.5825.1.camel@edumazet-laptop> <20111110064807.GB2058@minipsycho> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: netdev@vger.kernel.org, davem@davemloft.net, bhutchings@solarflare.com, shemminger@vyatta.com, fubar@us.ibm.com, andy@greyhouse.net, tgraf@infradead.org, ebiederm@xmission.com, mirqus@gmail.com, kaber@trash.net, greearb@candelatech.com, jesse@nicira.com, fbl@redhat.com, benjamin.poirier@gmail.com, jzupka@redhat.com, ivecera@redhat.com To: Jiri Pirko Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:57065 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753835Ab1KJGxJ (ORCPT ); Thu, 10 Nov 2011 01:53:09 -0500 Received: by wwh12 with SMTP id 12so1865974wwh.1 for ; Wed, 09 Nov 2011 22:53:07 -0800 (PST) In-Reply-To: <20111110064807.GB2058@minipsycho> Sender: netdev-owner@vger.kernel.org List-ID: Le jeudi 10 novembre 2011 =C3=A0 07:48 +0100, Jiri Pirko a =C3=A9crit : > dev_kfree_skb is called from module transmit functions to handle free= of > skb when needed. But I see now that in case when > (likely(!list_empty(&team->port_list) && team->mode_ops.transmit)) =3D= =3D false > this would leak. I'm going to rewrite this bit somehow. This is the leak I mentioned, I thought it was obvious :) If you return NETDEV_TX_OK, then the skb must have been consumed.