linux_dsm_epyc7002/drivers/s390
Stefan Weinhuber e3c699b38e [S390] dasd: fix bug in dasd initialization cleanup
The initialization of the dasd_eer code is one of the last steps of the
dasd driver initialization. When initialization fails in one of the
earlier steps, the dasd_exit function is called to clean up what has been
done so far. So the dasd_eer_exit function may be called, although the
dasd_eer_init function wasn't called before and dasd_eer_exit tries to
unregister a misc device that wasn't registered, which results in a BUG.

Make sure that dasd_eer_exit can be called without initialization. Use a
dynamically allocated struct miscdevice instead of a static one, so we
only try to unregister the device if it exists and was actually registered.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2007-02-05 21:17:04 +01:00
..
block [S390] dasd: fix bug in dasd initialization cleanup 2007-02-05 21:17:04 +01:00
char [S390] sclp: invalid handling of temporary 'not operational' status 2007-02-05 21:17:00 +01:00
cio [S390] cio: Remove check for ssd in chpids_show(). 2007-02-05 21:16:56 +01:00
crypto [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
net [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
scsi [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
ebcdic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [S390] Linux API for writing z/VM APPLDATA Monitor records. 2006-09-20 15:59:34 +02:00
Makefile [PATCH] s390: move s390_root_dev_* out of the cio layer 2006-01-06 08:33:49 -08:00
s390_rdev.c [PATCH] s390: kzalloc() conversion in drivers/s390 2006-03-24 07:33:18 -08:00
s390mach.c [S390] Check the return value of kthread_run(). 2007-02-05 21:16:49 +01:00
s390mach.h [PATCH] s390: Add missing memory constraint to stcrw() 2006-02-01 08:53:24 -08:00
sysinfo.c [S390] cleanup sysinfo and add system z9 specific extensions. 2006-09-20 15:59:10 +02:00