From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Ahern Subject: Re: [patch net-next 1/2] [PATCH] net: ip, raw_diag -- Fix socket leaking for destroy request Date: Wed, 2 Nov 2016 08:56:11 -0600 Message-ID: References: <20161102125454.694582296@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Cc: Eric Dumazet , "David S. Miller" , Andrey Vagin , Stephen Hemminger To: Cyrill Gorcunov , netdev@vger.kernel.org Return-path: Received: from mail-it0-f49.google.com ([209.85.214.49]:34719 "EHLO mail-it0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753471AbcKBO4T (ORCPT ); Wed, 2 Nov 2016 10:56:19 -0400 Received: by mail-it0-f49.google.com with SMTP id f129so18454787itc.1 for ; Wed, 02 Nov 2016 07:56:19 -0700 (PDT) In-Reply-To: <20161102125454.694582296@openvz.org> Sender: netdev-owner@vger.kernel.org List-ID: On 11/2/16 6:36 AM, Cyrill Gorcunov wrote: > In raw_diag_destroy the helper raw_sock_get returns > with sock_hold call, so we have to put it then. > > CC: David S. Miller > CC: Eric Dumazet > CC: David Ahern > CC: Andrey Vagin > CC: Stephen Hemminger > Signed-off-by: Cyrill Gorcunov > --- > net/ipv4/raw_diag.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Acked-by: David Ahern