The patch titled
     usb-skeleton leaking locks on open
has been added to the -mm tree.  Its filename is
     usb-skeleton-leaking-locks-on-open.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: usb-skeleton leaking locks on open
From: Mark Gross <[EMAIL PROTECTED]>

The code path through skel_open can grap the driver's io_mutex lock and
forget to release it.

Signed-off-by: Mark Gross <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 drivers/usb/usb-skeleton.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN drivers/usb/usb-skeleton.c~usb-skeleton-leaking-locks-on-open 
drivers/usb/usb-skeleton.c
--- a/drivers/usb/usb-skeleton.c~usb-skeleton-leaking-locks-on-open
+++ a/drivers/usb/usb-skeleton.c
@@ -125,6 +125,7 @@ static int skel_open(struct inode *inode
 
        /* save our object in the file's private structure */
        file->private_data = dev;
+       mutex_unlock(&dev->io_mutex);
 
 exit:
        return retval;
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

usb-skeleton-leaking-locks-on-open.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to