Commit d959cc9f authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] s390: dcss block driver fix

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

DCSS block device driver changes:
 - Fix remove_store function, put_device is called too early.
parent f86f3b68
......@@ -548,10 +548,10 @@ dcssblk_remove_store(struct device *dev, const char *buf, size_t count)
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment