summaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2017-01-10 19:26:40 -0800
committerHemant Kumar <hemantk@codeaurora.org>2017-01-16 11:30:09 -0800
commitc179cf38896f3d171ed7321b7b077d834676fb73 (patch)
tree99be29b75c97a053050a8501df3d0cdf8f32f5f5 /tools/perf/util/trace-event-scripting.c
parent2326bcf687b715c7773270ba9cc6aaf5fedc1dbb (diff)
sound: usb: Map interface context information to interface number
Driver is dynamically allocating memory based on bNumInterface from device configuration descriptor and stores interface context information using bInterfaceNum. Device can advertise bInterfaceNum >= bNumInterface which results into out of bound memory access. Hence create a mapping between interface context index and interface number. Use this mapping to find unused context index or load the context information of an interface. Change-Id: Ic99b10abe662088c2c030526135689f7c78c595a Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions