From: Alyssa Milburn Date: Sat, 1 Apr 2017 17:33:42 +0000 (-0300) Subject: digitv: limit messages to buffer size X-Git-Tag: v3.2.92~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a4b6a9aa3a892f819acf68d1a61765ec4dfc10d;p=pandora-kernel.git digitv: limit messages to buffer size commit 821117dc21083a99dd99174c10848d70ff43de29 upstream. 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 Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.2: adjust filename, context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed