From: Herbert Xu Date: Mon, 5 Jan 2015 20:54:41 +0000 (+1100) Subject: crypto: qat - Fix incorrect uses of memzero_explicit X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~90^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad511e260a27b8e35d273cc0ecfe5a8ff9543181;p=pandora-kernel.git crypto: qat - Fix incorrect uses of memzero_explicit memzero_explicit should only be used on stack variables that get zapped just before they go out of scope. This patch replaces all unnecessary uses of memzero_explicit with memset, removes two memzero_explicit calls altogether as the tfm context comes pre-zeroed, and adds a missing memzero_explicit of the stack variable buff in qat_alg_do_precomputes. The memzeros on ipad/opad + digest_size/auth_keylen are also removed as the entire auth_state is already zeroed on entry. Signed-off-by: Herbert Xu Acked-by: Tadeusz Struk --- Reading git-diff-tree failed