diff options
| author | Keita Suzuki <[email protected]> | 2020-09-09 07:18:51 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-16 17:30:37 +0200 |
| commit | bc28369c6189009b66d9619dd9f09bd8c684bb98 (patch) | |
| tree | 98d4e657121565d045d17ca6629d8f66269d9665 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 7369fa47c442a6d4268989b64fbc28af48f9126e (diff) | |
misc: rtsx: Fix memory leak in rtsx_pci_probe
When mfd_add_devices() fail, pcr->slots should also be freed. However,
the current implementation does not free the member, leading to a memory
leak.
Fix this by adding a new goto label that frees pcr->slots.
Signed-off-by: Keita Suzuki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions