Message ID | 20200504165505.854835441@linuxfoundation.org |
---|---|
State | New |
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=ham 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 2B0BFC3A5A9 for <stable@archiver.kernel.org>; Mon, 4 May 2020 18:05:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A3C52073E for <stable@archiver.kernel.org>; Mon, 4 May 2020 18:05:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588615544; bh=8QJu8C4+M3+eSdZiUf/yJQMwEkuvIhK4bHbnDdisRRw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=wZqmVw9HAkqF9reWrw2KZSHkhcCp21p5/RgchD+UFZRo2QSSaEak09zVFu5bQSYj8 +6ui/QT5W5P8LepSpDzf8Dcp9bQR58sULDWGzM1bxkiv8K/12xozIfuQv4RpeSZsOG VqLapaPVuKcVF9A8Y5G9W5x2FRlZFZVTJd1RNfoc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731829AbgEDSFm (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 4 May 2020 14:05:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:35614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731303AbgEDSFl (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 4 May 2020 14:05:41 -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 3C99D206B8; Mon, 4 May 2020 18:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588615540; bh=8QJu8C4+M3+eSdZiUf/yJQMwEkuvIhK4bHbnDdisRRw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lOK1qJfMcvT/W/AnvmI89hZPHzw8V0DH1fkxYQ31MIlVaR0JPwuVksm4qCBOM88ra p8whDMsI80rC6KOyvPXkbMzAHZyYBmhpLMK7Rds7mKRAFiDgctir6ByIYK1YNaREU6 uwyS4F4F4itwY8fbYjsS2thLLn58+znfuOimqLFw= 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.6 22/73] crypto: caam - fix the address of the last entry of S/G Date: Mon, 4 May 2020 19:57:25 +0200 Message-Id: <20200504165505.854835441@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200504165501.781878940@linuxfoundation.org> References: <20200504165501.781878940@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 @@ -1791,7 +1791,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,