[PATCH v2] USB: usb-skeleton.c: fix compilation error and restore kref_put on fail in skel_open

2012-10-10 Thread Constantine Shulyupin
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 52a7499 Revert USB: usb-skeleton.c: fix

Re: [PATCH v2] USB: usb-skeleton.c: fix compilation error and restore kref_put on fail in skel_open

2012-10-10 Thread Oliver Neukum
On Wednesday 10 October 2012 12:32:54 Constantine Shulyupin wrote: 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