From: Kent Yoder Date: Wed, 25 Jul 2012 19:14:02 +0000 (-0500) Subject: tpm: fix double write race and tpm_release free issue X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~32^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd7da132f7f04f34074efd134847a818ea29ddd7;p=pandora-kernel.git tpm: fix double write race and tpm_release free issue Moved the atomic_set of the data_pending variable until after the tpm_read has completed processing. The existing code had a window of time where a second write to the driver could clobber the tpm command buffer. Also fixed an issue where if close was called on the tpm device before a read completed, the tpm command buffer would be returned to the OS, which could contain sensitive information. Signed-off-by: Kent Yoder --- Reading git-diff-tree failed