diff options
| author | Mayank Rana <mrana@codeaurora.org> | 2016-04-11 16:32:48 -0700 |
|---|---|---|
| committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-04-18 17:06:17 -0700 |
| commit | 96fc91d1663957226113a0e19187f4fe9099c5d4 (patch) | |
| tree | 1a8901e99158b79b5db9706811a4d0b5dd755fc9 /tools/perf/scripts/python | |
| parent | 8266c2d117a731a3bb1ecf93b6198d4754e864b0 (diff) | |
usb: gadget: f_diag: Fix list corruption due to diag_context freed
While performing USB composition switch or adb is being killed,
list_add corruption related crash is seen when SLUB_DEBUG is
enabled. diag_function_unbind() API decrements kref count and when
it becomes zero, it is calling diag_context_release() which frees
diag_context. This list corruption is seen from purge_configfs_funcs()
API which is trying to move function list as part of func->list. Fix
this issue by releasing diag_context with free_func() instead of
diag_function_unbind().
CRs-Fixed: 1002041
Change-Id: Ie49e47f2a0f26144e0107759fedc67c3af80032c
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
