ChangeSet 1.1514, 2004/01/20 16:03:48-08:00, awagger@web.de [PATCH] USB: fix memory bug in usb-skeleton.c drivers/usb/usb-skeleton.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c --- a/drivers/usb/usb-skeleton.c Tue Jan 20 17:33:14 2004 +++ b/drivers/usb/usb-skeleton.c Tue Jan 20 17:33:14 2004 @@ -294,7 +294,7 @@ --dev->open; - if (!dev->present) { + if (!dev->present && !dev->open) { /* the device was unplugged before the file was released */ up (&dev->sem); skel_delete (dev);