
From: Martin Schwidefsky <schwidefsky@de.ibm.com>

DCSS block device driver changes:
 - Fix remove_store function, put_device is called too early.


---

 25-akpm/drivers/s390/block/dcssblk.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/s390/block/dcssblk.c~s390-6-12-dcss-block-driver-fix drivers/s390/block/dcssblk.c
--- 25/drivers/s390/block/dcssblk.c~s390-6-12-dcss-block-driver-fix	2004-04-08 13:55:08.742695080 -0700
+++ 25-akpm/drivers/s390/block/dcssblk.c	2004-04-08 13:55:08.745694624 -0700
@@ -548,10 +548,10 @@ dcssblk_remove_store(struct device *dev,
 	dev_info->gd->queue = NULL;
 	put_disk(dev_info->gd);
 	device_unregister(&dev_info->dev);
-	put_device(&dev_info->dev);
 	segment_unload(dev_info->segment_name);
 	PRINT_DEBUG("Segment %s unloaded successfully\n",
 			dev_info->segment_name);
+	put_device(&dev_info->dev);
 	rc = count;
 out_buf:
 	kfree(local_buf);

_
