Commit aa97a8d6 authored by Jürgen Quade's avatar Jürgen Quade Committed by Greg Kroah-Hartman

[PATCH] USB: usb-skeleton bugfix

parent 5e7dadea
...@@ -295,7 +295,7 @@ static int skel_release (struct inode *inode, struct file *file) ...@@ -295,7 +295,7 @@ static int skel_release (struct inode *inode, struct file *file)
if (atomic_read (&dev->write_busy)) if (atomic_read (&dev->write_busy))
wait_for_completion (&dev->write_finished); wait_for_completion (&dev->write_finished);
dev->open = 0; --dev->open;
if (!dev->present) { if (!dev->present) {
/* the device was unplugged before the file was released */ /* the device was unplugged before the file was released */
......
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