Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1395747pxk; Sun, 13 Sep 2020 00:51:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxH5QyER7WZaflms7LWE8JUE+WtdM4XT2xsuetnPMigtaXDBq+NCfu/CF6wN7SD7pl44FO X-Received: by 2002:aa7:d30b:: with SMTP id p11mr11748209edq.80.1599983496408; Sun, 13 Sep 2020 00:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599983496; cv=none; d=google.com; s=arc-20160816; b=DuKQDzfg6/7vj7DGU4S3OHVIuknKIZbJJq1O3KAJN4OXVCVvM5L7HSZVHthdaxp8we FP+od4Oin3H/ss+J469nufkvT2b+/z/Cc64lMR4RAwHuAhViYmfqCVuPfG+JJMrhnT7h 3kv5Hr3BGt3BiBk3x3ZPijkzCqCwoojCy6Xg6nhjuyoNUGnl+3BOzjBKn5tywFhCTesF h59YIOWPkaS9jt/HHGVUZ5eVlun3AgIxjAxx0WX9hiErqEQdpCTDaiyN72oftjnM6CBP NJSX7ty4xJVjITHbNsTdANYSnpQLuMYnEPu2C7XzO9j0kmdiePjmVSzxa2dkWQBvDMev Is2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qYWzNSDa14AkONpbTTLew5leaH4VXQTqzaEvTUMECKw=; b=dok/LSoCM1a3TLXsMTP0xH80kb5LaIzbwPB8Z8cI20qmsD9DNv9PUiB/ppGAwBsOgw 8WeEW59Ms6RwqnEn3JcJjdVwUggC8epepoWQY7pqBGKSb8J/vBYg11iaRpJ4cpbq6pI8 GkrEcQTefzKvV/9ey3msXfi5vaoEL711dwmFYq3foOiYLzxLwTuqRnOArks6URGstEK3 heTm8XkEgXrpeM7UYdPmfNp1aIiksz4w5j5Hm3iT6ZCwQGUHPXlVtgCCrwh0cRv/dcme F4MF+KNMb8/KNBez5iBTH1GGxGltZhtG/j3W8ik4/xJmfSkwJNXwtANzp9wIKSmT6mF1 HsbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W2JxUspO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si5035506edm.221.2020.09.13.00.51.13; Sun, 13 Sep 2020 00:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W2JxUspO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725930AbgIMHti (ORCPT + 99 others); Sun, 13 Sep 2020 03:49:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725918AbgIMHtg (ORCPT ); Sun, 13 Sep 2020 03:49:36 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D38DAC061573; Sun, 13 Sep 2020 00:49:35 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id u3so3761674pjr.3; Sun, 13 Sep 2020 00:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qYWzNSDa14AkONpbTTLew5leaH4VXQTqzaEvTUMECKw=; b=W2JxUspOxdm0NdXZ7vuXab7dorsL2Sg17rUePYjKC2jnCwKuKF+g0y1vMMFbTrCoA9 Xl39Q8kyYLehH7wicKKkYhr8rfHlpYqUEHVaosiAzZLmoier6jxBcb6YSlUmYclTegUG +guaLxL/6oEVPr4dIcNW2hmyngJcVBn66iu+AWQjspCB1p0DLDe0NIDCU9fKdc0i++PL pCG0EYRjRu3GkUKjMnWPDme+xqMRidS6vnvk5wqOXStRF9exEgJVrqhC2PnlLshSVIO6 ufPaXTwJW44MPjHkhesGk61Edw9kIe2xTTqYekoW85OJTJx0ipxTHmCW7ycmY2GpQfUr MV1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qYWzNSDa14AkONpbTTLew5leaH4VXQTqzaEvTUMECKw=; b=MFDcSgOXMtgnmFVdoqtdpSJltXOs9/JunvWuvMPObDzUt4BxKlh7iYkClt+0CJWKCH CGmAjHeAN1znvs0Gs+bYhxMHjIHcS7o5X429OJh6sXUGRSoOwOOLkSsMnpQf7w9tZwG+ /lIHe8EFdfXQufRdomADyesBW3qB2xmonAYUlDoYZlCs4UNYgpKkl2pJomkulEoywbmq xNX2fZ7rIUJP5h1AW4JtXOo27T2iVuaXxqJZtBiIMCHwT5/OJUVOwfjuZw5Dk7Nsow6Z 6QScL6t4VqKcCJdAqak+PstYdMVOqRVINtRJ+SotehXRFUpAed8HjybBmKbEHd3edC58 Q66w== X-Gm-Message-State: AOAM530Hu0lgjK3ZIQ97qlPfGzcwy1/otdxMNMNWSr4kheeFWzL8cXUh wJUqLcQeloJmUmYZ9YZV8Q== X-Received: by 2002:a17:902:c692:b029:d0:90a3:24f4 with SMTP id r18-20020a170902c692b02900d090a324f4mr9256031plx.12.1599983375416; Sun, 13 Sep 2020 00:49:35 -0700 (PDT) Received: from PWN (n11212042027.netvigator.com. [112.120.42.27]) by smtp.gmail.com with ESMTPSA id s8sm632246pjm.7.2020.09.13.00.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2020 00:49:34 -0700 (PDT) Date: Sun, 13 Sep 2020 03:49:23 -0400 From: Peilin Ye To: David Miller Cc: jmaloy@redhat.com, ying.xue@windriver.com, kuba@kernel.org, hdanton@sina.com, gregkh@linuxfoundation.org, netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, linux-kernel-mentees@lists.linuxfoundation.org, syzkaller-bugs@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [Linux-kernel-mentees] [PATCH net] tipc: Fix memory leak in tipc_group_create_member() Message-ID: <20200913074923.GA1533160@PWN> References: <000000000000879057058f193fb5@google.com> <20200912102230.1529402-1-yepeilin.cs@gmail.com> <20200912.182336.585362420502143240.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200912.182336.585362420502143240.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 12, 2020 at 06:23:36PM -0700, David Miller wrote: > From: Peilin Ye > Date: Sat, 12 Sep 2020 06:22:30 -0400 > > > @@ -291,10 +291,11 @@ static void tipc_group_add_to_tree(struct tipc_group *grp, > > else if (key > nkey) > > n = &(*n)->rb_right; > > else > > - return; > > + return -1; > > Use a real error code like "-EEXIST", thank you. Ah, I'll fix it in v2 soon, sorry about that. I saw another function in this file returning -1. Peilin Ye