[S390] zcrypt: fix ap_device_list handling
authorRalph Wuerthner <rwuerthn@de.ibm.com>
Wed, 5 Mar 2008 11:37:13 +0000 (12:37 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 5 Mar 2008 11:37:19 +0000 (12:37 +0100)
commitfaa582ca8014d2e1ede5568a813fb0e5c3c078df
tree18e4a7a8a877d2d246f01234fbbb61324a36354f
parentfa331ffc56fb8ead0811a89e4a582bbd5f29d714
[S390] zcrypt: fix ap_device_list handling

In ap_device_probe() we can add the new ap device to the internal
device list only if the device probe function successfully returns.
Otherwise we might end up with an invalid device in the internal ap
device list.

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