From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Xu Subject: Re: [PATCH] crypto: initialize entry len for null input in crypto hash sg list walk Date: Mon, 25 Aug 2014 20:40:38 +0800 Message-ID: <20140825124038.GA28815@gondor.apana.org.au> References: <1405034288.2970.647.camel@schen9-DESK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "H. Peter Anvin" , "David S.Miller" , Chandramouli Narayanan , Jussi Kivilinna , linux-crypto@vger.kernel.org To: Tim Chen Return-path: Received: from helcar.apana.org.au ([209.40.204.226]:47987 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755444AbaHYMlB (ORCPT ); Mon, 25 Aug 2014 08:41:01 -0400 Content-Disposition: inline In-Reply-To: <1405034288.2970.647.camel@schen9-DESK> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Thu, Jul 10, 2014 at 04:18:08PM -0700, Tim Chen wrote: > For the special case when we have a null input string, we want > to initialize the entry len to 0 for the hash/ahash walk, so > cyrpto_hash_walk_last will return the correct result indicating > that we have completed the scatter list walk. Otherwise we may > keep walking the sg list and access bogus memory address. > > Signed-off-by: Tim Chen Patch applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt