]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcrypt: fix device unregister race
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 17 Jul 2015 13:01:08 +0000 (15:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:20 +0000 (14:32 +0200)
commit246627b9f75f495012f4d38811a59c63bf16cf1c
treef795b94defda04b04ad6f446418490b1b22100b9
parent24dc4fa9a3f9341ec8b3a564c76481dc29c508e0
s390/zcrypt: fix device unregister race

The ap_queue_messsage function will call device_unregister if the
unregistered field of the device has been set while trying to queue
a message. This races with other device_unregister calls, e.g. from
the ap_scan_bus. Remove the call to device_unregister from
ap_queue_message and let ap_scan_bus deal with it.

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