]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: gadgetfs: use after free in dev_release()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:14:49 +0000 (11:14 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 20:03:28 +0000 (15:03 -0500)
commit1826e9b1bd9139850954acb9c2e0fb230ba94e0d
tree8d5b125b22ea01d125ab716f89583c7a769679a1
parentc078a37652477e1b08318df8fe403e02cac5138d
usb: gadget: gadgetfs: use after free in dev_release()

The call to put_dev() releases "dev".  Hopefully, we don't need to set
the state to STATE_DEV_DISABLED anyway so I have removed those lines.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/inode.c