media: uvcvideo: Allow entities with no pads
authorRicardo Ribalda <ribalda@chromium.org>
Wed, 23 Dec 2020 13:35:19 +0000 (14:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 14:02:20 +0000 (15:02 +0100)
commit7532dad6634031d083df7af606fac655b8d08b5c
treeab45135b3347864b1c093e110da56ab53854236d
parentcae79e50d1222010fde8c522410c315f74d35c40
media: uvcvideo: Allow entities with no pads

Avoid an underflow while calculating the number of inputs for entities
with zero pads.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/usb/uvc/uvc_driver.c