commit | 1b02d9e770cd7087f34c743f85ccf5ea8372b047 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Tue Sep 08 15:07:49 2020 +0200 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Wed Sep 09 13:07:11 2020 +0200 |
tree | a7ad153c1c7b2e84b7e8d90e083879e31e2ea0ee | |
parent | 45ccf6556720293323c20cda717756014ff63007 [diff] |
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>