Re: [PATCH 1/2] bcma: Fix memory leak for internally-handled cores

From: Zenghui Yu
Date: Sun Aug 22 2021 - 23:56:49 EST


On 2021/8/21 18:05, Kalle Valo wrote:
Zenghui Yu <yuzenghui@xxxxxxxxxx> writes:

On 2021/7/27 10:52, Zenghui Yu wrote:
kmemleak reported that dev_name() of internally-handled cores were leaked
on driver unbinding. Let's use device_initialize() to take refcounts for
them and put_device() to properly free the related stuff.

Could this be picked as a fix for v5.14 (_if_ it does fix something)?

Why should this go to v5.14? Most probably it's too late for v5.14
anyway.

No worries. It's not urgent and just that I didn't realize we're
already at rc7 now.

The patch has been on the list for about 4 weeks and I'd appreciate
any review comments from maintainers.

Zenghui