diff options
| author | Jerry Zhang <[email protected]> | 2018-03-30 17:54:24 -0700 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2018-05-15 10:08:44 +0300 |
| commit | 9286e24b837151a5a59e7403cea3e4a2c33ba225 (patch) | |
| tree | e4707c84aa40d0262f832b34a08d43d471deb479 /tools/perf/scripts/python/bin | |
| parent | 7ecca2a4080cb6b1fa174adc588fce9e9014c43c (diff) | |
usb: gadget: f_midi: Use refcount when freeing f_midi_opts
Currently, the midi function is not freed until it is
both removed from the config and released by the user.
Since the user could take a long time to release the
card, it's possible that the function could be unlinked
and thus f_midi_opts would be null when freeing f_midi.
Thus, refcount f_midi_opts and only free it when it is
unlinked and all f_midis have been freed.
Signed-off-by: Jerry Zhang <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions