Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757955AbYLKTTh (ORCPT ); Thu, 11 Dec 2008 14:19:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756807AbYLKTSH (ORCPT ); Thu, 11 Dec 2008 14:18:07 -0500 Received: from kroah.org ([198.145.64.141]:55787 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756352AbYLKTSD (ORCPT ); Thu, 11 Dec 2008 14:18:03 -0500 Date: Thu, 11 Dec 2008 11:13:40 -0800 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Frederic Moulins , "David S. Miller" Subject: [patch 05/83] pppol2tp: Add missing sock_put() in pppol2tp_release() Message-ID: <20081211191340.GE5894@kroah.com> References: <20081211190201.612240183@mini.kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline; filename="0004-pppol2tp-Add-missing-sock_put-in-pppol2tp_release.patch" Content-Transfer-Encoding: 8bit In-Reply-To: <20081211191014.GA5759@suse.de> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 939 Lines: 34 2.6.27-stable review patch. If anyone has any objections, please let us know. ------------------ From: Fr?d?ric Moulins [ Upstream commit e6358135147807351db3b7782d3e198a1bba8b62 ] pppol2tp_sock_to_session() do sock_hold() if the session to release is not NULL. Signed-off-by: Frederic Moulins Signed-off-by: David S. Miller --- drivers/net/pppol2tp.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/pppol2tp.c +++ b/drivers/net/pppol2tp.c @@ -1353,6 +1353,7 @@ static int pppol2tp_release(struct socke kfree_skb(skb); sock_put(sk); } + sock_put(sk); } release_sock(sk); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/