]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: gadgetfs: potential use after free in unbind()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:16:15 +0000 (11:16 +0300)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 20:03:32 +0000 (15:03 -0500)
commitccd35241499eb53089c914229b47e500a458aeda
tree13d8c00b7fc665020acce3cfb1f5ecf4d6e11d68
parent520eb92ab115655d47e614a843c73907ec22ba39
usb: gadget: gadgetfs: potential use after free in unbind()

ffs_data_put() can sometimes free "ffs" so I have moved the call down
a line below the dereference.

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