diff options
author | Zhang Qilong <[email protected]> | 2020-11-17 10:16:28 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-11-20 16:32:42 +0100 |
commit | e7694cb6998379341fd9bf3bd62b48c4e6a79385 (patch) | |
tree | cd5c2745685ebe9ac1c37c9e8afb60b92f4ca5c9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 9ca57518361418ad5ae7dc38a2128fbf4855e1a2 (diff) |
usb: gadget: f_midi: Fix memleak in f_midi_alloc
In the error path, if midi is not null, we should
free the midi->id if necessary to prevent memleak.
Fixes: b85e9de9e818d ("usb: gadget: f_midi: convert to new function interface with backward compatibility")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zhang Qilong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions