Newsgroups: linux.kernel
From: Constantine Shulyupin <co...@MakeLinux.com>
Date: Sun, 07 Oct 2012 12:00:02 +0200
Local: Sun, Oct 7 2012 6:00 am
Subject: [PATCH] USB: usb-skeleton.c: fix compilation error and restore kref_put on fail in skel_open
From: Constantine Shulyupin <co...@MakeLinux.com>
Function skel_open increments usage count for the device with kref_get and the usage count should be decremented on the function failure.
Some last changes in function skel_open and finally commit
Signed-off-by: Constantine Shulyupin <co...@MakeLinux.com>
diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c
retval = usb_autopm_get_interface(interface);
/* save our object in the file's private structure */
--
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||