Commit 1c73d0b2 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: dw2102: fix a potential buffer overflow



As pointed by smatch:
	 drivers/media/usb/dvb-usb/dw2102.c:802 su3000_i2c_transfer() error: __builtin_memcpy() '&state->data[4]' too small (64 vs 67)

That seemss to be due to a wrong copy-and-paste.

Fixes: 0e148a52 ("media: dw2102: Don't translate i2c read into write")

Reported-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 9789ea6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment