From: Mauro Carvalho Chehab Date: Tue, 28 Apr 2015 21:34:40 +0000 (-0300) Subject: [media] s5h1420: fix a buffer overflow when checking userspace params X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~511 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12f4543f5d6811f864e6c4952eb27253c7466c02;p=pandora-kernel.git [media] s5h1420: fix a buffer overflow when checking userspace params The maximum size for a DiSEqC command is 6, according to the userspace API. However, the code allows to write up to 7 values: drivers/media/dvb-frontends/s5h1420.c:193 s5h1420_send_master_cmd() error: buffer overflow 'cmd->msg' 6 <= 7 Cc: stable@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed