[media] digitv: limit messages to buffer size
authorAlyssa Milburn <amilburn@zall.org>
Sat, 1 Apr 2017 17:33:42 +0000 (14:33 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 18 Apr 2017 15:52:41 +0000 (12:52 -0300)
commit821117dc21083a99dd99174c10848d70ff43de29
treeba526813d5b48ecffbdf56281096c127f093c333
parente8357cdec3d1b6b42566ce3bc960e5e10c2b3787
[media] digitv: limit messages to buffer size

Return an error rather than memcpy()ing beyond the end of the buffer.
Internal callers use appropriate sizes, but digitv_i2c_xfer may not.

Signed-off-by: Alyssa Milburn <amilburn@zall.org>
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/dvb-usb/digitv.c