Thread (4 messages) flat view 4 messages, 3 authors, 2022-02-25

Re: [PATCH] ARM: mmp: Fix failure to remove sram device

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-08-05 11:18:18

On Mon, Jul 26, 2021 at 10:01:58PM +0200, Uwe Kleine-König wrote:
Make sure in .probe() to set driver data before the function is left to
make it possible in .remove() to undo the actions done.

This fixes a potential memory leak and stops returning an error code in
.remove() that is ignored by the driver core anyhow.

Signed-off-by: Uwe Kleine-König <redacted>
---
 arch/arm/mach-mmp/sram.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help