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(-)
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(-)
[adding soc@kernel.org to Cc]
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>
This problem is still real and the patch not applied. Who feels
responsible to pick this up?
On Mon, Feb 21, 2022 at 1:14 PM Uwe Kleine-König
[off-list ref] wrote:
[adding soc@kernel.org to Cc]
On Mon, Jul 26, 2021 at 10:01:58PM +0200, Uwe Kleine-König wrote:
quoted
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>
This problem is still real and the patch not applied. Who feels
responsible to pick this up?
I've picked it up manually now, thank you for looping us in.
Note that I almost missed it again though, if you really want my attention,
send the patch to:soc@kernel.org so it makes it into patchwork. At that
point, I'll have to either apply it or actively discard the patch from there.
Arnd
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel