Re: [PATCH] net: macb: fix ref count leaking via pm_runtime_get_sync

From: David Miller
Date: Mon Jun 15 2020 - 16:42:26 EST


From: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>
Date: Sun, 14 Jun 2020 00:48:03 -0500

> in macb_mdio_write, macb_mdio_read, and at91ether_open,
> pm_runtime_get_sync is called which increments the counter even in case of
> failure, leading to incorrect ref count.
> In case of failure, decrement the ref count before returning.
>
> Signed-off-by: Navid Emamdoost <navid.emamdoost@xxxxxxxxx>

This does not apply to the net tree.