s390/zcrypt: Fix invalid domain handling during ap module unload
authorIngo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Thu, 30 Apr 2015 13:36:48 +0000 (15:36 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 13 May 2015 07:57:29 +0000 (09:57 +0200)
commitf60b8d449d850ae4aa3ee4fdaefec6b7882c92f7
tree4f58fdbfc2fd3fbc8b27e22de124604b05b53d1f
parentb9b4b1cef156e6b403b26ea4cb6d0caf4850e05c
s390/zcrypt: Fix invalid domain handling during ap module unload

Added domain checking to prevent reset failures caused by invalid
domains.
Corrected removal sequence of bus attributes and device.

Reviewed-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c