tpm_tis: fix tis_lock with respect to RCU
authorJiri Kosina <jkosina@suse.cz>
Wed, 29 Feb 2012 09:29:23 +0000 (10:29 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 5 Mar 2012 13:06:59 +0000 (14:06 +0100)
commit4e70daaf05a181b6968e29e72e9f1c16a183e92c
tree34001ce04cbc2476eab137483cdb42e084ac44cf
parentc3363c912ba743e6f981ba58c744e413fc41f943
tpm_tis: fix tis_lock with respect to RCU

cleanup_tis() -> tpm_remove_hardware() -> syncrhonize_rcu() is being
called in an atomic context (tis_lock spinlock held), which is not
allowed. Convert tis_lock to mutex.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
drivers/char/tpm/tpm_tis.c