Re: [PATCH] gpio: mockup: fix resource leak in error path

2020-09-09 Thread Bartosz Golaszewski
On Tue, Sep 8, 2020 at 3:45 PM Andy Shevchenko wrote: > > On Tue, Sep 08, 2020 at 03:07:49PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > If the module init function fails after creating the debugs directory, > > it's never removed. Add proper cleanup calls to avoid

Re: [PATCH] gpio: mockup: fix resource leak in error path

2020-09-08 Thread Andy Shevchenko
On Tue, Sep 08, 2020 at 03:07:49PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > If the module init function fails after creating the debugs directory, > it's never removed. Add proper cleanup calls to avoid this resource > leak. Reviewed-by: Andy Shevchenko > Fixes:

[PATCH] gpio: mockup: fix resource leak in error path

2020-09-08 Thread Bartosz Golaszewski
From: Bartosz Golaszewski 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: Signed-off-by: Bartosz Golaszewski ---