]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] zcrypt: fix possible race when unloading zcrypt driver modules
authorRalph Wuerthner <rwuerthn@de.ibm.com>
Mon, 19 Mar 2007 12:19:19 +0000 (13:19 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 19 Mar 2007 12:19:19 +0000 (13:19 +0100)
commit43a867a2d2a119c744bab6dc8d3e1da6809d7141
tree156175709a93e36bdec9a0dbb91f3fa219816c76
parentcf352ce0b9104dc6a1c11df52db9f910f1f6cd2e
[S390] zcrypt: fix possible race when unloading zcrypt driver modules

Move try_module_get() call into spin protected block to prevent zcrypt
driver module unload while submitting a request to driver.

Signed-off-by: Ralph Wuerthner <rwuerthn@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/zcrypt_api.c