From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Klassert Subject: Re: [PATCH][ipsec-next] xfrm: use correct size to initialise sp->ovec Date: Tue, 9 Oct 2018 10:20:40 +0200 Message-ID: <20181009082040.GT3823@gauss3.secunet.de> References: <1538878962-22453-1-git-send-email-lirongqing@baidu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: To: Li RongQing Return-path: Received: from a.mx.secunet.com ([62.96.220.36]:60096 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbeJIPg0 (ORCPT ); Tue, 9 Oct 2018 11:36:26 -0400 Content-Disposition: inline In-Reply-To: <1538878962-22453-1-git-send-email-lirongqing@baidu.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sun, Oct 07, 2018 at 10:22:42AM +0800, Li RongQing wrote: > This place should want to initialize array, not a element, > so it should be sizeof(array) instead of sizeof(element) > > but now this array only has one element, so no error in > this condition that XFRM_MAX_OFFLOAD_DEPTH is 1 > > Signed-off-by: Li RongQing Also applied, thanks a lot Li!