Re: [PATCH 1/2] soc: apple: mailbox: fix device leak on lookup

From: Markus Elfring

Date: Fri Sep 26 2025 - 14:08:15 EST


> Make sure to drop the reference taken to the mbox platform device when
> looking up its driver data.


How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17-rc7/source/include/linux/device.h#L1180
https://elixir.bootlin.com/linux/v6.17-rc7/source/include/linux/of.h#L138

Regards,
Markus