commit | de9c222572d894ee5d1bca8da4aa7b751d8b5ff9 | [log] [tgz] |
---|---|---|
author | Hemant Kumar <hemantk@codeaurora.org> | Wed May 04 18:22:14 2016 -0700 |
committer | Mayank Rana <mrana@codeaurora.org> | Thu Nov 10 12:19:53 2016 -0800 |
tree | e9ee790b2f728b3f910a2efbdd8a843a315f9384 | |
parent | 5c4400be00ddc7830d9c9667eb1c6decb0be0341 [diff] |
usb: gadget: composite: Fix double free memory bug configfs_dev_cleanup function can double free os_desc and buffer when called from different context. For example, this can be called from composite_unbind() and when composite_bind() fails. Fix this issue by setting request and buffer pointer to NULL after kfree. CRs-Fixed: 1013316 Change-Id: I6e87289627b23fc368f990fc7962854eeb3fbbc1 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>