Re: [syzbot] [i2c?] [usb?] INFO: trying to register non-static key in i2c_register_adapter
From: Hillf Danton
Date: Mon Jan 05 2026 - 04:28:29 EST
> Date: Mon, 05 Jan 2026 00:31:24 -0800
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: b69053dd3ffb wifi: mt76: Remove blank line after mt792x fi..
> git tree: upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=151caa9a580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=513255d80ab78f2b
> dashboard link: https://syzkaller.appspot.com/bug?extid=4718cc0f82054afeea8f
> compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=131caa9a580000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=122377da580000
#syz test
--- x/drivers/i2c/i2c-core-base.c
+++ y/drivers/i2c/i2c-core-base.c
@@ -1573,7 +1573,6 @@ static int i2c_register_adapter(struct i
res = device_add(&adap->dev);
if (res) {
pr_err("adapter '%s': can't register device (%d)\n", adap->name, res);
- put_device(&adap->dev);
goto out_list;
}
--