On Mon, Mar 18, 2019 at 11:00:54PM +0300, Andy Shevchenko wrote: > The acpi_dev_get_first_match_name() is missing put_device() call > and thus keeping reference counting unbalanced. > > In order to fix the issue introduce a new helper to convert existing users > one-by-one to a better API. I think it makes more sense to convert all the existing users to this new API that does not leak, and remove the faulty function completely instead of marking it deprecated.