aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2020-09-08 13:07:49 +0000
committerBartosz Golaszewski <[email protected]>2020-09-30 08:50:25 +0000
commite0ab949f152a7f070fbf7b56d9caa4206b140190 (patch)
tree54f7786a931269a31aa539cfa522d728cc99383f /lib/string_helpers.c
parentgpio: mxc: Support module build (diff)
downloadkernel-e0ab949f152a7f070fbf7b56d9caa4206b140190.tar.gz
kernel-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: <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions