Message ID | 20200504165457.965888549@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=p9ou=6S=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65B4BC3A5A9 for <stable@archiver.kernel.org>; Mon, 4 May 2020 18:12:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49D652078C for <stable@archiver.kernel.org>; Mon, 4 May 2020 18:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588615930; bh=ytZwgFE7cLPXO0eUnNw0mcP7f4wwPBF7aiAhnHM+Z90=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ufysC7Y17vdxIlVLHuMk6YAIgUz75lxm3EnNhX/tj2gKy+rPodX2XfxohpIU6cB+G Dg+OxJNli3tg29A4Bk/d+L8DYoVn1i99JjoWRjDW1Y/9YgTlSeNsHmywz/gDf/Dd9V O8mklhdx1z9nf+uMf+Y3acmpQkfDtVcwzEswROVg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731454AbgEDSDH (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 4 May 2020 14:03:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:60046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731450AbgEDSDG (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 4 May 2020 14:03:06 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E4B09206B8; Mon, 4 May 2020 18:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588615386; bh=ytZwgFE7cLPXO0eUnNw0mcP7f4wwPBF7aiAhnHM+Z90=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d/CI2agnHHFi9sOZ9T0MOlbLia24Yd6igtcMsPgjjD6qTADf0PzBzACsK9+RNO21n 3bovQk09+pl4RioBiCDlnydXR0IOe3Y/w32FMeeAYiPIGK2ke1iX03aWFttyLOSuUH 9MGtKrbQLAivHOIRJKLc2jBNEbV4x6taxrO4KZN8= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Iuliana Prodan <iuliana.prodan@nxp.com>, =?utf-8?q?Horia_Geant=C4=83?= <horia.geanta@nxp.com>, Herbert Xu <herbert@gondor.apana.org.au> Subject: [PATCH 5.4 18/57] crypto: caam - fix the address of the last entry of S/G Date: Mon, 4 May 2020 19:57:22 +0200 Message-Id: <20200504165457.965888549@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200504165456.783676004@linuxfoundation.org> References: <20200504165456.783676004@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/crypto/caam/caamalg.c +++ b/drivers/crypto/caam/caamalg.c @@ -1810,7 +1810,7 @@ static struct skcipher_edesc *skcipher_e if (ivsize || mapped_dst_nents > 1) sg_to_sec4_set_last(edesc->sec4_sg + dst_sg_idx + - mapped_dst_nents); + mapped_dst_nents - 1 + !!ivsize); if (sec4_sg_bytes) { edesc->sec4_sg_dma = dma_map_single(jrdev, edesc->sec4_sg,