commit | e0ab949f152a7f070fbf7b56d9caa4206b140190 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <[email protected]> | Tue Sep 08 15:07:49 2020 +0200 |
committer | Bartosz Golaszewski <[email protected]> | Wed Sep 30 10:50:25 2020 +0200 |
tree | 54f7786a931269a31aa539cfa522d728cc99383f | |
parent | 12d16b397ce0a999d13762c4c0cae2fb82eb60ee [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: <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]>