]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i2c: core: fix irq domain leak on adapter registration failure
authorJohan Hovold <johan@kernel.org>
Mon, 11 May 2026 14:37:06 +0000 (16:37 +0200)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 30 May 2026 21:57:18 +0000 (23:57 +0200)
commit8ce19524e4cc2462685f596a6402fbd8fb984ab2
tree4e98740d7174a57073fc5d2e3c4703a906a63403
parent254f49634ee16a731174d2ae34bc50bd5f45e731
i2c: core: fix irq domain leak on adapter registration failure

Make sure to tear down the host notify irq domain on adapter
registration failure to avoid leaking it.

This issue was flagged by Sashiko when reviewing another adapter
registration fix.

Fixes: 4d5538f5882a ("i2c: use an IRQ to report Host Notify events, not alert")
Cc: stable@vger.kernel.org # 4.10
Cc: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/i2c-core-base.c