diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-09-08 16:07:49 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-09-09 14:07:11 +0300 |
commit | 1b02d9e770cd7087f34c743f85ccf5ea8372b047 (patch) | |
tree | a7ad153c1c7b2e84b7e8d90e083879e31e2ea0ee /drivers/lightnvm | |
parent | 45ccf6556720293323c20cda717756014ff63007 (diff) | |
download | linux-1b02d9e770cd7087f34c743f85ccf5ea8372b047.tar.xz |
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 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions