summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJamie Iles <quic_jiles@quicinc.com>2021-09-22 19:57:18 +0300
committerWolfram Sang <wsa@kernel.org>2021-10-02 09:38:43 +0300
commit6558b646ce1c2a872fe1c2c7cb116f05a2c1950f (patch)
treea05a27004e04118d201ab11c3c411715c2e83412 /fs
parent5816b3e6577eaa676ceb00a848f0fd65fe2adc29 (diff)
downloadlinux-6558b646ce1c2a872fe1c2c7cb116f05a2c1950f.tar.xz
i2c: acpi: fix resource leak in reconfiguration device addition
acpi_i2c_find_adapter_by_handle() calls bus_find_device() which takes a reference on the adapter which is never released which will result in a reference count leak and render the adapter unremovable. Make sure to put the adapter after creating the client in the same manner that we do for OF. Fixes: 525e6fabeae2 ("i2c / ACPI: add support for ACPI reconfigure notifications") Signed-off-by: Jamie Iles <quic_jiles@quicinc.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> [wsa: fixed title] Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions