summaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2016-10-14 18:58:16 -0700
committerHemant Kumar <hemantk@codeaurora.org>2016-10-14 19:25:33 -0700
commit1d0ede934b0d47196ca262841d15107764a6a4a4 (patch)
tree8a4f93916b244be6af13325a8d58e579509ed500 /lib/mpi/mpicoder.c
parent773f15cdab613a9cb921f3e1e49f96cadac75c14 (diff)
usb: gadget: f_midi: Fix use after free bug
Upon cable disconnect usb composition switches from midi to default composition as a result midi function driver frees the midi function. When cable is plugged back in android_setup calls function setup call back for all the function instances having non-null function pointer. This results into access to already freed function pointer stored in function instance. Fix this issue by setting function instance's function pointer to NULL so that android_setup will skip calling midi function setup upon next cable connect. Change-Id: Ia619650c94c35aea015a89841c59a1f9dbc521f9 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions