Commit f259cb39 authored by Mike Anderson's avatar Mike Anderson Committed by Christoph Hellwig

[PATCH] fix module unload of sg

	It looks like sg.c was missed in the update from put_device to
	device_unregister.
parent b980fa6f
...@@ -1607,7 +1607,7 @@ sg_detach(Scsi_Device * scsidp) ...@@ -1607,7 +1607,7 @@ sg_detach(Scsi_Device * scsidp)
sdp->de = NULL; sdp->de = NULL;
device_remove_file(&sdp->sg_driverfs_dev, &dev_attr_type); device_remove_file(&sdp->sg_driverfs_dev, &dev_attr_type);
device_remove_file(&sdp->sg_driverfs_dev, &dev_attr_kdev); device_remove_file(&sdp->sg_driverfs_dev, &dev_attr_kdev);
put_device(&sdp->sg_driverfs_dev); device_unregister(&sdp->sg_driverfs_dev);
if (NULL == sdp->headfp) if (NULL == sdp->headfp)
vfree((char *) sdp); vfree((char *) sdp);
} }
......
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