diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2022-10-04 15:26:36 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-10-04 16:08:50 +0200 |
commit | 800b8eecb284eb0f1d213dae5d00b4f372b7353a (patch) | |
tree | 389431b90118f2e02c97e485444565b322e4a21e /drivers/pnp | |
parent | 9388076b4cedf199624173b4fcd3f208c02632d6 (diff) |
platform/x86: int3472: Don't leak reference on error
The for_each_acpi_consumer_dev() takes a reference to the iterator
and if we break a loop we must drop that reference. This usually
happens when error handling is involved. However it's not the case
for skl_int3472_fill_clk_pdata().
Don't leak reference on error by dropping it properly.
Fixes: 43cf36974d76 ("platform/x86: int3472: Support multiple clock consumers")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions