forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
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)