Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161660AbbKFPbF (ORCPT ); Fri, 6 Nov 2015 10:31:05 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:35043 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161212AbbKFPbC (ORCPT ); Fri, 6 Nov 2015 10:31:02 -0500 Date: Fri, 6 Nov 2015 15:30:57 +0000 From: Jamie Iles To: LABBE Corentin Cc: davem@davemloft.net, herbert@gondor.apana.org.au, jamie@jamieiles.com, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] crypto: picoxcell: check return value of sg_nents_for_len Message-ID: <20151106153057.GA10738@page> References: <1446668045-8620-1-git-send-email-clabbe.montjoie@gmail.com> <1446668045-8620-5-git-send-email-clabbe.montjoie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1446668045-8620-5-git-send-email-clabbe.montjoie@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 630 Lines: 18 On Wed, Nov 04, 2015 at 09:13:37PM +0100, LABBE Corentin wrote: > The sg_nents_for_len() function could fail, this patch add a check for > its return value. > In the same time, we remove sg_count() as it is used as an alias of > sg_nents_for_len. > > Signed-off-by: LABBE Corentin Acked-by: Jamie Iles thanks for doing this! Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/