android_kernel_samsung_msm8976/drivers/s390/block
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
..
dasd.c [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
dasd_3370_erp.c [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_3990_erp.c [S390] New DASD feature for ERP related logging 2006-12-08 15:54:15 +01:00
dasd_9336_erp.c [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_9343_erp.c [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_devmap.c [S390] New DASD feature for ERP related logging 2006-12-08 15:54:15 +01:00
dasd_diag.c [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
dasd_diag.h [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_eckd.c [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
dasd_eckd.h [S390] add PAV support to the dasd driver. 2006-06-29 15:08:18 +02:00
dasd_eer.c [S390] dasd: fix bug in dasd initialization cleanup 2007-02-05 21:17:04 +01:00
dasd_erp.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
dasd_fba.c [PATCH] slab: remove SLAB_DMA 2006-12-07 08:39:24 -08:00
dasd_fba.h [S390] dasd whitespace and other cosmetics. 2006-06-29 14:58:12 +02:00
dasd_genhd.c [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
dasd_int.h [S390] New DASD feature for ERP related logging 2006-12-08 15:54:15 +01:00
dasd_ioctl.c [PATCH] struct path: convert s390-drivers 2006-12-08 08:28:49 -08:00
dasd_proc.c [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
dcssblk.c [PATCH] s390: kzalloc() conversion in drivers/s390 2006-03-24 07:33:18 -08:00
Kconfig [PATCH] BLOCK: Make it possible to disable the block layer [try #6] 2006-09-30 20:52:31 +02:00
Makefile [PATCH] s390: dasd extended error reporting 2006-03-24 07:33:17 -08:00
xpram.c [S390] Inline assembly cleanup. 2006-09-28 16:56:43 +02:00