From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9A0603A542F; Wed, 17 Jun 2026 10:50:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781693423; cv=none; b=I59uCvUV0G1OW30ImsJIvEtw5OXdGVjJBcd5TDqC9wGxAXUnNgWjwjcipT47A3CsOriDtWI1xBeKUjnFPmMLLpvhk/LmFx1bORzXU5Yyb8EQGrhJwZhaBhPye4bq/8end84iow51gN5M4Ttq+Rt8Fx81XQsG6LfPoJw+1evTnRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781693423; c=relaxed/simple; bh=9pPBkO3gc9N/jyqyq7AGK1UiVjHQGxA2rU0Oet/CGjw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GqRxhi+y21gn3s3OCgUz0z/kLqmr6DMsxNxyyEXpYZmSsBJzLNpmeSI/M/QkXttGWPsjHd0+HdMsI2cu4BysmYUGECVOiIeb7kWDiQUMKMwZn8Z4Xfo85KuucvF2N0l0o6E8Wwzpq/yUVVrrmyUCWTdttysJBBvIo5nYQ0WQOU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fmK4Syly; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fmK4Syly" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 131CE1F00A3A; Wed, 17 Jun 2026 10:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781693422; bh=TcgwyOhuccTDCxyM2IFtavwgGWUzSYEdO4vCBnknHj0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=fmK4SylybLAYzLx+5Szg6wczbL87zqr6Lntq9LVbE9LWfRg/lsV+VZlW+lmr/HL3l AtV6+yCBeyu6DQuy/t3wotcVCE/VM+Zo7uEBoqaXVPez3SOLcK7C37oVw/ArUffRkw xY7rDxy0lJCeZN7pm4vMr2D6XgZfKuwblHWjbdeg/qhE4PnKnprlc3do92NWE/O2CW kfLD9Ox6cCO6Fgc2UnB0DHAETrpzLEFfyNhlMsVYwyDqwsrMHnOKGYVcjqhNZk8a4f b97EbDTbPbOh6lYm6raMQ12KGmJ84YDaZayLo3UJJH4tJ0L4bwmAcD/R3piuU4GFgs XkYIvB3kD3T7A== Date: Wed, 17 Jun 2026 11:50:18 +0100 From: Simon Horman To: Wentao Guan Cc: kuba@kernel.org, joel.granados@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, zhanjun@uniontech.com, niecheng1@uniontech.com Subject: Re: [PATCH net] net: llc: make empty have static storage duration Message-ID: <20260617105018.GC827683@horms.kernel.org> References: <20260616064053.690154-1-guanwentao@uniontech.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-Disposition: inline In-Reply-To: <20260616064053.690154-1-guanwentao@uniontech.com> On Tue, Jun 16, 2026 at 02:40:53PM +0800, Wentao Guan wrote: > Make empty have static storage duration (like net/sysctl_net.c does) to > avoid a potential use-after-return and keep consistent with > __register_sysctl_table @table 'should not be free'd after registration'. > > Fixes: 73dbd8cf7947 ("net: Remove ctl_table sentinel elements from several networking subsystems") > Signed-off-by: Wentao Guan Reviewed-by: Simon Horman