From 81781e681551ed3f56c9202e9adc7ef941cba654 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 11 Jun 2015 11:28:34 +0800 Subject: [PATCH] crypto: picoxcell - Clamp AEAD SG list by input length Currently the driver assumes that the SG list contains exactly the number of bytes required. This assumption is incorrect. Up until now this has been harmless. However with the new AEAD interface this now breaks as the AD SG list contains more bytes than just the AD. This patch fixes this by always clamping the AD SG list by the specified AD length. Signed-off-by: Herbert Xu --- Reading git-format-patch failed