hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/usb/uvc/uvc_entity.c
....@@ -37,7 +37,7 @@
3737 continue;
3838
3939 remote = uvc_entity_by_id(chain->dev, entity->baSourceID[i]);
40
- if (remote == NULL)
40
+ if (remote == NULL || remote->num_pads == 0)
4141 return -EINVAL;
4242
4343 source = (UVC_ENTITY_TYPE(remote) == UVC_TT_STREAMING)