]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Dec 2013 02:03:03 +0000 (18:03 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Dec 2013 02:03:03 +0000 (18:03 -0800)
added patches:
crypto-scatterwalk-use-sg_chain_ptr-on-chain-entries.patch

queue-3.10/crypto-scatterwalk-use-sg_chain_ptr-on-chain-entries.patch [new file with mode: 0644]
queue-3.10/series

diff --git a/queue-3.10/crypto-scatterwalk-use-sg_chain_ptr-on-chain-entries.patch b/queue-3.10/crypto-scatterwalk-use-sg_chain_ptr-on-chain-entries.patch
new file mode 100644 (file)
index 0000000..9c4082e
--- /dev/null
@@ -0,0 +1,32 @@
+From 389a5390583a18e45bc4abd4439291abec5e7a63 Mon Sep 17 00:00:00 2001
+From: Tom Lendacky <thomas.lendacky@amd.com>
+Date: Thu, 5 Dec 2013 13:09:53 -0600
+Subject: crypto: scatterwalk - Use sg_chain_ptr on chain entries
+
+From: Tom Lendacky <thomas.lendacky@amd.com>
+
+commit 389a5390583a18e45bc4abd4439291abec5e7a63 upstream.
+
+Now that scatterwalk_sg_chain sets the chain pointer bit the sg_page
+call in scatterwalk_sg_next hits a BUG_ON when CONFIG_DEBUG_SG is
+enabled. Use sg_chain_ptr instead of sg_page on a chain entry.
+
+Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ include/crypto/scatterwalk.h |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/crypto/scatterwalk.h
++++ b/include/crypto/scatterwalk.h
+@@ -44,7 +44,7 @@ static inline struct scatterlist *scatte
+       if (sg_is_last(sg))
+               return NULL;
+-      return (++sg)->length ? sg : (void *)sg_page(sg);
++      return (++sg)->length ? sg : sg_chain_ptr(sg);
+ }
+ static inline void scatterwalk_crypto_chain(struct scatterlist *head,
index d8e4b8ed9bdfe5215828ba785345f423f05135cb..9e2d8714dd7698a90224ad1b5e61621bcca0e235 100644 (file)
@@ -50,3 +50,4 @@ usb-cdc-acm-added-support-for-the-lenovo-rd02-d400-usb-modem.patch
 drivers-char-i8k.c-add-dell-xpls-l421x.patch
 arm-mvebu-fix-second-and-third-pcie-unit-of-armada-xp-mv78260.patch
 arm-mvebu-second-pcie-unit-of-armada-xp-mv78230-is-only-x1-capable.patch
+crypto-scatterwalk-use-sg_chain_ptr-on-chain-entries.patch