]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit2836c2cab635a0afd47465db8e7614ad10688e94
tree18e4a7a8a877d2d246f01234fbbb61324a36354f
parentd85115e74a43850e7ebdd19c8b79fb68cfd1faf2
[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