[S390] zcrypt: Free ap_device if dev_set_name fails.
authorFelix Beck <felix.beck@de.ibm.com>
Fri, 11 Sep 2009 08:28:52 +0000 (10:28 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 11 Sep 2009 08:29:51 +0000 (10:29 +0200)
commitedc44fa03ed7bc9847787e080190cf1d7ed68ceb
tree78b6b02e04c0edd32d123cf7ab78b333660f5d90
parent95f1556c35529a162cef50296f3dc7f978852048
[S390] zcrypt: Free ap_device if dev_set_name fails.

If dev_set_name fails during scanning the AP bus, the reserved memory
has to be freed.

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