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)
commit0393e735649dc41358adb7b603bd57dad1ed3260
tree57425e4e4c1bf9bbb4a2c7d3d74d06ed6a47d76d
parentdfc1648c576719b5a2701805aab1e208789d5969
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