From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8800F231842; Wed, 4 Feb 2026 02:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770172698; cv=none; b=rJ70LQd3cmeoNKNVORV7tun1p2QqF2GHNFq8XkWVem2UUnsY0Pd8WUm9ZNEUHsIZ+TB05MuZTbrVJ+dCTaoaDOpI3OJBKf0ab8sMgaxdeIeUNLNbC2VSZy9wipsFBnOBlxy5cQU43qBvdl+y5kGcXgs/7gBBOiLC0Y1NfcTzPXU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770172698; c=relaxed/simple; bh=G2VSSNpwXmf7g1sFP46ogxcG7BeVML6goWr8A13QQ10=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=l+aSvqND4YAzaRge3Hu2LCRyKFyBD/8Ldd5v0BGO6Dgq74C/ybrR6uac5bIumDXun2KE+NBG6cR5dju+jF85jdR91xjfJDTBByv37PplsQEl73tJOWgfLnOpX66pkgekXsNsaC3wKa7nixn4u+MCjtZHrYQ6eQTkn8XsNAXYhHo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sC/AsGzx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sC/AsGzx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B664C116D0; Wed, 4 Feb 2026 02:38:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770172698; bh=G2VSSNpwXmf7g1sFP46ogxcG7BeVML6goWr8A13QQ10=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sC/AsGzx1hH/xiUDBh6Gga9FpRcqSs7pvPu7rU7Sa7GZ52mP9xJUUdcsV5la7E6fa +/t96hTNVQzWj4l1NdrJy+hhPQ8qLkUpSFYFtOkT4ne2HZGpm2bruCIlclABxM1JXx qTLvBDnD8vqpLMDDHn9An8GvI0odkE4TdFSU8Z2NG+jgFFMzVFccp+hkqFnloaLy+J i98Mhwgx1EYuyhVi24SXI1EwFwTgyyt4QTI4DUMkmwwBepLJd2sEjCLk5qejdQ1Z+7 29PlRhyjuo4P9s9jQV8UDYPeEts3ZNqyvfaTgtd3vK8Bsp/qka00yakUIFQlU9KBgz 3X6qCZ8Q9BHgA== Date: Tue, 3 Feb 2026 18:38:16 -0800 From: Jakub Kicinski To: Jijie Shao Cc: , , , , , , , , , , , , , , Subject: Re: [PATCH net] net: hns3: fix double free issue for tx spare buffer Message-ID: <20260203183816.3bb02543@kernel.org> In-Reply-To: <20260202105837.1909444-1-shaojijie@huawei.com> References: <20260202105837.1909444-1-shaojijie@huawei.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 2 Feb 2026 18:58:37 +0800 Jijie Shao wrote: > The driver missed to clear ring->tx_spare to NULL when > fail to initialize tx spare buffer. And it will try to > free the tx spare buffer in hns3_fini_ring() if tx_spare > is not NULL. So it may cause double free issue. Please update this commit message so that reviewers don't have to do as much research.