------------[ cut here ]------------
Unexpected driver unregister!
WARNING: CPU: 0 PID: 7972 at drivers/base/driver.c:273 driver_unregister+0x94/0xb0
Modules linked in:
CPU: 0 UID: 0 PID: 7972 Comm: syz.2.987 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:driver_unregister+0x94/0xb0
Code: 44 85 fc 48 89 df 5b 41 5e 41 5f e9 26 54 ff ff e8 41 e4 df fb eb 05 e8 3a e4 df fb 90 48 c7 c7 80 9e 26 8c e8 fd 64 a1 fb 90 <0f> 0b 90 90 5b 41 5e 41 5f c3 cc cc cc cc cc cc cc cc cc cc cc cc
RSP: 0018:ffffc90003847a20 EFLAGS: 00010246
RAX: 863c41103f688000 RBX: ffffffff8f5ae2c0 RCX: 0000000000080000
RDX: ffffc90004b49000 RSI: 00000000000354ae RDI: 00000000000354af
RBP: 0000000000000001 R08: ffff888121024293 R09: 1ffff11024204852
R10: dffffc0000000000 R11: ffffed1024204853 R12: ffff88817147b038
R13: ffffffff8f5ae210 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007fb2e0e4d6c0(0000) GS:ffff88818e4de000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb2e0211118 CR3: 00000001b7dc4000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 comedi_device_detach_locked+0x178/0x750
 comedi_device_attach+0x5d4/0x720
 comedi_unlocked_ioctl+0x712/0x1290
 __se_sys_ioctl+0xfc/0x170
 do_syscall_64+0xf0/0xfa0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb2dff9cdd9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb2e0e4d028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb2e0215fa0 RCX: 00007fb2dff9cdd9
RDX: 0000200000000140 RSI: 0000000040946400 RDI: 0000000000000003
RBP: 00007fb2e0032d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb2e0216038 R14: 00007fb2e0215fa0 R15: 00007ffe2fd4eb08
 </TASK>
