mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
V4L/DVB(12993b): gl860: Prevent a potential risk of zeroing a floating pointer
drivers/media/video/gspca/gl860/gl860.c: In function ‘gl860_build_control_table’: drivers/media/video/gspca/gl860/gl860.c:119: warning: ‘sd_ctrls’ may be used uninitialized in this function Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ab2058571d
commit
0030ec38ce
1 changed files with 2 additions and 0 deletions
|
@ -129,6 +129,8 @@ static int gl860_build_control_table(struct gspca_dev *gspca_dev)
|
|||
sd_ctrls = sd_ctrls_ov2640;
|
||||
else if (_OV9655_)
|
||||
sd_ctrls = sd_ctrls_ov9655;
|
||||
else
|
||||
return 0;
|
||||
|
||||
memset(sd_ctrls, 0, GL860_NCTRLS * sizeof(struct ctrl));
|
||||
|
||||
|
|
Loading…
Reference in a new issue