Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2662547pxj; Mon, 14 Jun 2021 04:20:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymhKRN1Wrfx6XBy5n4Xjczuc9+roiH5wfGkHzHvQsW+cKzjpWqZVTL3g7Cte7Gb2lcqDRP X-Received: by 2002:aa7:c04d:: with SMTP id k13mr16502047edo.122.1623669610815; Mon, 14 Jun 2021 04:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623669610; cv=none; d=google.com; s=arc-20160816; b=EkveH6qSpFIO2BqTD5Q6Vo8K7S7t+L9F/tADiNaYAi1yVMs13d8RRq+XfSBApRBaxN q9/k8f2DkypJLqolPREog9/PaglNb7blSWCxHmjqSPgo4edqUhZwZ9TEBHRn0uaPqPox M+iEh6bjJ0Yt1PL/MEst3FsAyx3meAwcqGUAOoYUmgfbNPRMsW7ievgoyhSS1AUyffaT 52QLUCfJVrDHVqM6IJoELAsRsABVpmPufg90cgykNtFlUCpqfZJR7N8Legohxlh1iQpO uTVIeSJnIDpVZq67T8fbkbx572H1fgJgnTz1JuORh0tho77ENzAUFnCip2NJdjkFPY+8 DZwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=nXlKb7AF6abmep/OhK+3nloRQ3gBLLmiigWv8Q57llg=; b=GO8b1icvVlv8KzhijG09W+eVPROlc+HwxYc/crSrzx4dYE+EsDnOBpvcE8sDLRWkG/ NKaZ7+JPCCQnS6F2wlY2OjKwAvdikDMht4nV7eBUGv1+cSX4hIf11BsCQnqXeYj31qJj CKodN+XO6qShkXJJi0zk7HX5DORkpB2nt6AtT/oqJO5UVzaB2yYai1It662ph2fOjSyH BH9c87coO0l2OebErAnfmxfNHJa1f8OQfX9RI2WVSgBaivXQ+wPafnwV1jqJ6HEIsgfR Zt3Uqn/2PpASGnXAlcB5CteU1rSlw/NbQ9cQUjFK8Qny7BvmxQa6NJRhvvrsBO+GzV2B 0LMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@datenfreihafen.org header.s=2021 header.b=Lx75bPvA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si11389262ejc.409.2021.06.14.04.19.48; Mon, 14 Jun 2021 04:20:10 -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=@datenfreihafen.org header.s=2021 header.b=Lx75bPvA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236110AbhFNLUX (ORCPT + 99 others); Mon, 14 Jun 2021 07:20:23 -0400 Received: from proxima.lasnet.de ([78.47.171.185]:33834 "EHLO proxima.lasnet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234616AbhFNLIW (ORCPT ); Mon, 14 Jun 2021 07:08:22 -0400 Received: from [IPv6:2003:e9:d709:46c5:895f:5712:ed71:b02d] (p200300e9d70946c5895f5712ed71b02d.dip0.t-ipconnect.de [IPv6:2003:e9:d709:46c5:895f:5712:ed71:b02d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: stefan@datenfreihafen.org) by proxima.lasnet.de (Postfix) with ESMTPSA id DBADFC0209; Mon, 14 Jun 2021 13:06:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datenfreihafen.org; s=2021; t=1623668770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nXlKb7AF6abmep/OhK+3nloRQ3gBLLmiigWv8Q57llg=; b=Lx75bPvAIra2817vcWVhtTwrkg7l3HUIVn3Rd6WX5orjkbRABhKzh3eXXttqpuACJB5AZ3 F6fX0V9qOvAekcNOIADzBbwzXWGAzY8DaIa4f5Uw9sX2+EbuZpDqCsocM3YoLx04CK+wrb WrtbxHkuGYlS8aA0YDe71zInk3RD3Rwf+R0PdJXw8flCA9tbpS3KhEYQCxXJF2jIcoHMTl ZENHfUZEMYpz1HPrBmBIWqkRu3VKdQ5hMfRHnZ+5RXwJEUx/bIqX8yRIpp5GRk2fmUl+NV MAGGqfx8A4mtXmqaW1s3ST1/6kwBejSMvU3w2sHbWltlgPxhAbSs6/QozatMAA== Subject: Re: [PATCH] ieee802154: hwsim: Fix possible memory leak in hwsim_subscribe_all_others To: Alexander Aring , Dongliang Mu Cc: "David S. Miller" , Jakub Kicinski , linux-wpan - ML , "open list:NETWORKING [GENERAL]" , kernel list References: <20210611015812.1626999-1-mudongliangabcd@gmail.com> From: Stefan Schmidt Message-ID: Date: Mon, 14 Jun 2021 13:06:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. On 12.06.21 14:49, Alexander Aring wrote: > Hi, > > On Thu, 10 Jun 2021 at 21:58, Dongliang Mu wrote: >> >> In hwsim_subscribe_all_others, the error handling code performs >> incorrectly if the second hwsim_alloc_edge fails. When this issue occurs, >> it goes to sub_fail, without cleaning the edges allocated before. >> >> Fixes: f25da51fdc38 ("ieee802154: hwsim: add replacement for fakelb") >> Signed-off-by: Dongliang Mu > > Acked-by: Alexander Aring > > sorry, it is a correct fix. Thanks. This patch has been applied to the wpan tree and will be part of the next pull request to net. Thanks! regards Stefan Schmidt