Kernel bug: WARNING in media_create_pad_link (2)
Subsystem: usb, media
Status: fixed

Crash report:
usb 5-1: Found UVC 0.00 device <unnamed> (2833:0201)
uvcvideo 5-1:0.0: Entity type for entity Output 1 was not initialized!
uvcvideo 5-1:0.0: Entity type for entity Input 1 was not initialized!
------------[ cut here ]------------
WARNING: CPU: 3 PID: 6119 at drivers/media/mc/mc-entity.c:1147 media_create_pad_link+0x5d7/0x760 drivers/media/mc/mc-entity.c:1147
Modules linked in:
CPU: 3 UID: 0 PID: 6119 Comm: kworker/3:3 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
Workqueue: usb_hub_wq hub_event
RIP: 0010:media_create_pad_link+0x5d7/0x760 drivers/media/mc/mc-entity.c:1147
Code: 17 e0 f9 90 0f 0b 90 bb ea ff ff ff eb d6 e8 60 17 e0 f9 90 0f 0b 90 eb ee e8 55 17 e0 f9 90 0f 0b 90 eb e3 e8 4a 17 e0 f9 90 <0f> 0b 90 eb d8 e8 3f 17 e0 f9 90 0f 0b 90 eb cd e8 74 72 46 fa e9
RSP: 0018:ffffc900016eef10 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88802c997080 RCX: ffffffff87db703a
RDX: ffff8880220fc880 RSI: ffffffff87db74b6 RDI: 0000000000000007
RBP: ffff88802c997080 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880d69b8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30563fff CR3: 0000000052416000 CR4: 0000000000352ef0
Call Trace:
 <TASK>
 uvc_mc_create_links drivers/media/usb/uvc/uvc_entity.c:50 [inline]
 uvc_mc_register_entities+0x3a9/0xab0 drivers/media/usb/uvc/uvc_entity.c:151
 uvc_register_chains drivers/media/usb/uvc/uvc_driver.c:2129 [inline]
 uvc_probe+0x2d0e/0x48a0 drivers/media/usb/uvc/uvc_driver.c:2268
 usb_probe_interface+0x300/0xa40 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:581 [inline]
 really_probe+0x241/0xa90 drivers/base/dd.c:659
 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:801
 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831
 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:959
 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:462
 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1031
 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:537
 device_add+0x1148/0x1aa0 drivers/base/core.c:3689
 usb_set_configuration+0x1187/0x1e20 drivers/usb/core/message.c:2210
 usb_generic_driver_probe+0xb1/0x110 drivers/usb/core/generic.c:250
 usb_probe_device+0xef/0x3e0 drivers/usb/core/driver.c:291
 call_driver_probe drivers/base/dd.c:581 [inline]
 really_probe+0x241/0xa90 drivers/base/dd.c:659
 __driver_probe_device+0x1de/0x440 drivers/base/dd.c:801
 driver_probe_device+0x4c/0x1b0 drivers/base/dd.c:831
 __device_attach_driver+0x1df/0x310 drivers/base/dd.c:959
 bus_for_each_drv+0x159/0x1e0 drivers/base/bus.c:462
 __device_attach+0x1e4/0x4b0 drivers/base/dd.c:1031
 bus_probe_device+0x17f/0x1c0 drivers/base/bus.c:537
 device_add+0x1148/0x1aa0 drivers/base/core.c:3689
 usb_new_device+0xd07/0x1a60 drivers/usb/core/hub.c:2694
 hub_port_connect drivers/usb/core/hub.c:5566 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5706 [inline]
 port_event drivers/usb/core/hub.c:5870 [inline]
 hub_event+0x2f34/0x4fe0 drivers/usb/core/hub.c:5952
 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236
 process_scheduled_works kernel/workqueue.c:3319 [inline]
 worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400
 kthread+0x3c5/0x780 kernel/kthread.c:463
 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>