From: Leonidas Da Silva Barbosa Date: Thu, 23 Apr 2015 20:40:30 +0000 (-0300) Subject: crypto: nx - Fixing NX data alignment with nx_sg list X-Git-Tag: omap-for-v4.3/legacy-v2-signed~193^2~232 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3365ce130e50176533debe1cabebcdb8e61156c;p=pandora-kernel.git crypto: nx - Fixing NX data alignment with nx_sg list In NX we need to pass always a 16 multiple size nx_sg_list to co processor. Trim function handle with this assuring all nx_sg_lists are 16 multiple size, although data was not being considerated when crop was done. It was causing an unalignment between size of the list and data, corrupting csbcpb fields returning a -23 H_ST_PARM error, or invalid operation. This patch fix this recalculating how much data should be put back in to_process variable what assures the size of sg_list will be correct with size of the data. Signed-off-by: Leonidas S. Barbosa Signed-off-by: Herbert Xu --- Reading git-diff-tree failed