diff options
author | Marcus Nutzinger <[email protected]> | 2014-06-05 17:17:06 +0200 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2014-06-19 10:11:14 -0500 |
commit | f0cae93f3f7e9a26c2d6bc182204c37dec3698eb (patch) | |
tree | ec58317828c265211d09b214e666c36b8b53075c /net/unix/af_unix.c | |
parent | 14574b546d87a282cc9ea0f43935cee6bfc97bf8 (diff) |
usb: gadget: gadgetfs: correct dev state
This reverts commit 1826e9b1 (usb: gadget: gadgetfs: use
after free in dev_release()) and places the call to
put_dev() after setting the state.
If this is not the final call to dev_release() and the
state is not reset to STATE_DEV_DISABLED and hence all
further open() calls to the gadgetfs ep0 device will
fail with EBUSY.
Signed-off-by: Marcus Nutzinger <[email protected]>
Reviewed-by: Christoph Muellner <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions