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 BBD8C196 for ; Mon, 5 Jun 2023 08:35:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 781E8C433D2; Mon, 5 Jun 2023 08:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685954100; bh=KNrV//Bo+zqQ1/Kkalh+mrM4XTLA5+jJqev5pBZLUd8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LoE0sjosGTqW9cpUYTFrXSXU2Y//b81Q7w+fBEBUjWPqJk/yYpf0Ac5Near0cSmXh 2fuXyvsOuo7+H8eAah/2wRHtUQMQDaMQCYpyMscDBLzbcJ19Xmaun0JVWmyaXF8Suf CBYRxaTVfd9xfUThlwZqxbLyyWmLOk/H7csIXpVif88N528TLuMfMVTVX1Z2TDzaRw ODQXvbOgJU5SahnJncSIN14bI9bvMIbMVg4zrIfoLdPXCbae9B2QWeWoTGzCelT6XH 4BpAOkeCJ1UEH7HMANMAl2FEe3rtno47z/vj6Wc21qOlI+dnQwHc/lzwhRlysMngfL tDhD+He3ikgkw== Date: Mon, 5 Jun 2023 11:34:56 +0300 From: Leon Romanovsky To: Herbert Xu Cc: Steffen Klassert , "David S. Miller" , Eric Dumazet , Jakub Kicinski , netdev@vger.kernel.org, Paolo Abeni Subject: Re: [PATCH ipsec-next] xfrm: delete not-needed clear to zero of encap_oa Message-ID: <20230605083456.GA22489@unreal> References: <1ed3e00428a0036bdea14eb4f5a45706a89f11eb.1685952635.git.leon@kernel.org> 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: On Mon, Jun 05, 2023 at 04:30:47PM +0800, Herbert Xu wrote: > On Mon, Jun 05, 2023 at 11:11:51AM +0300, Leon Romanovsky wrote: > > > > diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c > > index c34a2a06ca94..ec713db148f3 100644 > > --- a/net/xfrm/xfrm_user.c > > +++ b/net/xfrm/xfrm_user.c > > @@ -1077,7 +1077,6 @@ static int copy_to_user_encap(struct xfrm_encap_tmpl *ep, struct sk_buff *skb) > > uep->encap_type = ep->encap_type; > > uep->encap_sport = ep->encap_sport; > > uep->encap_dport = ep->encap_dport; > > - uep->encap_oa = ep->encap_oa; > > Where is the justification for this? The line "memset(&natt->encap_oa, 0, sizeof(natt->encap_oa));" deleted in this patch was the last reference to encap_oa. Thanks > > Cheers, > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt