[PATCH] s390 (6/12): dcss block driver fix.

From: Martin Schwidefsky
Date: Thu Apr 08 2004 - 09:38:03 EST


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

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

diff -urN linux-2.6/drivers/s390/block/dcssblk.c linux-2.6-s390/drivers/s390/block/dcssblk.c
--- linux-2.6/drivers/s390/block/dcssblk.c Sun Apr 4 05:36:26 2004
+++ linux-2.6-s390/drivers/s390/block/dcssblk.c Thu Apr 8 15:21:27 2004
@@ -548,10 +548,10 @@
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/