Thread (74 messages) 74 messages, 7 authors, 2020-09-11

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

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2020-09-07 11:55:46
Also in: linux-acpi, linux-doc, lkml

On Mon, Sep 07, 2020 at 01:04:59PM +0200, Bartosz Golaszewski wrote:
On Fri, Sep 4, 2020 at 7:00 PM Andy Shevchenko
[off-list ref] wrote:
quoted
On Fri, Sep 04, 2020 at 05:45:34PM +0200, Bartosz Golaszewski wrote:
quoted
From: Bartosz Golaszewski <redacted>

If the module init function fails after creating the debugs directory,
it's never removed. Add proper cleanup calls to avoid this resource
leak.
Does it fix existing bug?
You mean - should it go into stable? The bug is quite unlikely but
yeah, probably.
Yes. That sounds to me like Fixes: is needed.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help