[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20171213.134512.2023826705476381469.davem@davemloft.net>
Date: Wed, 13 Dec 2017 13:45:12 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: jon.maloy@...csson.com
Cc: netdev@...r.kernel.org,
mohan.krishna.ghanta.krishnamurthy@...csson.com,
tung.q.nguyen@...tech.com.au, hoang.h.le@...tech.com.au,
canh.d.luu@...tech.com.au, ying.xue@...driver.com,
tipc-discussion@...ts.sourceforge.net
Subject: Re: [net 1/1] tipc: eliminate potential memory leak
From: Jon Maloy <jon.maloy@...csson.com>
Date: Mon, 11 Dec 2017 19:11:55 +0100
> In the function tipc_sk_mcast_rcv() we call refcount_dec(&skb->users)
> on received sk_buffers. Since the reference counter might hit zero at
> this point, we have a potential memory leak.
>
> We fix this by replacing refcount_dec() with kfree_skb().
>
> Signed-off-by: Jon Maloy <jon.maloy@...csson.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists