[S390] tape class return value handling.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 7 Aug 2006 15:00:28 +0000 (17:00 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 7 Aug 2006 15:00:28 +0000 (17:00 +0200)
commit25a2001a285e187d99ea347693bedd73b3e0722a
treebeb8855dc37c0593ebc6fe325e208b4696741101
parent9f737633e6ee54fc174282d49b2559bd2208391d
[S390] tape class return value handling.

Without this patch register_tape_dev() will always fail, but might
return a value that is not an error number. This will lead to accesses
to already freed memory areas...

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tape_class.c