Commit a5e3bda2 authored by Axel Waggershauser's avatar Axel Waggershauser Committed by Greg Kroah-Hartman

[PATCH] USB: fix memory bug in usb-skeleton.c

parent 18cdc0b3
...@@ -294,7 +294,7 @@ static int skel_release (struct inode *inode, struct file *file) ...@@ -294,7 +294,7 @@ static int skel_release (struct inode *inode, struct file *file)
--dev->open; --dev->open;
if (!dev->present) { if (!dev->present && !dev->open) {
/* the device was unplugged before the file was released */ /* the device was unplugged before the file was released */
up (&dev->sem); up (&dev->sem);
skel_delete (dev); skel_delete (dev);
......
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