]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/media/dvb-frontends/hd29l2.c
[media] hd29l2: fix sparse error and warnings
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 13 Dec 2014 11:52:56 +0000 (08:52 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 12:42:51 +0000 (10:42 -0200)
commit50fd5e8c1e02ac471a0a4f3aaa87684a5152a0b4
treee6fc93587a6e5ebdaadc3b8c9915f6512ddbdb96
parent7c424dd14fcf4c2905778ecd3f1ad10c5a097b5b
[media] hd29l2: fix sparse error and warnings

drivers/media/dvb-frontends/hd29l2.c:29:18: warning: Variable length array is used.
drivers/media/dvb-frontends/hd29l2.c:34:32: error: cannot size expression
drivers/media/dvb-frontends/hd29l2.c:125:5: warning: symbol 'hd29l2_rd_reg_mask' was not declared. Should it be static?

Variable length arrays are frowned upon, so replace with a fixed length and check
that there won't be a buffer overrun.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/hd29l2.c