[media] cx24116: fix a buffer overflow when checking userspace params

commit 1fa2337a31 upstream.

The maximum size for a DiSEqC command is 6, according to the
userspace API. However, the code allows to write up much more values:
	drivers/media/dvb-frontends/cx24116.c:983 cx24116_send_diseqc_msg() error: buffer overflow 'd->msg' 6 <= 23

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Mauro Carvalho Chehab 2015-04-28 18:51:17 -03:00 • committed by Luis Henriques
commit 9bd2b656ff