Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9f62ffe authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] stb0899: don't go past DiSEqC msg buffer



As reported by spatch:
	drivers/media/dvb-frontends/stb0899_drv.c:720 stb0899_send_diseqc_msg() error: buffer overflow 'cmd->msg' 6 <= 7

The buffer size is 6 and not 8. Anyway, the best is to use sizeof(),
to avoid such mistakes.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent fb9b1641
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment