diff options
author | 2020-09-08 15:07:49 +0200 | |
---|---|---|
committer | 2020-09-30 10:50:25 +0200 | |
commit | e0ab949f152a7f070fbf7b56d9caa4206b140190 (patch) | |
tree | 54f7786a931269a31aa539cfa522d728cc99383f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: mxc: Support module build (diff) | |
download | linux-dev-e0ab949f152a7f070fbf7b56d9caa4206b140190.tar.xz linux-dev-e0ab949f152a7f070fbf7b56d9caa4206b140190.zip |
gpio: mockup: fix resource leak in error path
If the module init function fails after creating the debugs directory,
it's never removed. Add proper cleanup calls to avoid this resource
leak.
Fixes: 9202ba2397d1 ("gpio: mockup: implement event injecting over debugfs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions