]> git.baikalelectronics.ru Git - kernel.git/commit
media: uvcvideo: Stream error events carry no data
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 17 Oct 2017 17:15:54 +0000 (13:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 16:33:09 +0000 (11:33 -0500)
commit199edbb84afb0fec9ddf287365535e3e48b0498b
tree57425e4e4c1bf9bbb4a2c7d3d74d06ed6a47d76d
parentd7f3d2a30452b51d2d314aa8d52936689cee7cf2
media: uvcvideo: Stream error events carry no data

According to the UVC specification, stream error events carry no data.
Fix a buffer overflow (that should be harmless given data alignment)
when reporting the stream error event by removing the data byte from the
message.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_status.c