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

From: Zenghui Yu
Date: Fri Aug 20 2021 - 23:29:57 EST


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)?

Thanks,
Zenghui