From: Marcelo Cerri Date: Fri, 2 Aug 2013 12:09:51 +0000 (+0000) Subject: crypto: nx - fix physical addresses added to sg lists X-Git-Tag: v3.12-rc1~108^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b7c15ca17128f7c11ebb3d4480f917829703b01;p=pandora-kernel.git crypto: nx - fix physical addresses added to sg lists The co-processor receives data to be hashed through scatter/gather lists pointing to physical addresses. When a vmalloc'ed data is given, the driver must calculate the physical address to each page of the data. However the current version of it just calculates the physical address once and keeps incrementing it even when a page boundary is crossed. This patch fixes this behaviour. Reviewed-by: Fionnuala Gunter Reviewed-by: Joel Schopp Reviewed-by: Joy Latten Signed-off-by: Marcelo Cerri Signed-off-by: Herbert Xu --- Reading git-diff-tree failed