Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 9202ba2 ("gpio: mockup: implement event injecting over debugfs") Cc: <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]>
- Loading branch information