FS12845: Fix uninitialized read
Change-Id: If0e5b65a70e10b624416e2a15e0b3df29c2b4591
This commit is contained in:
parent
3ed035769c
commit
0c62177575
1 changed files with 4 additions and 1 deletions
|
@ -560,7 +560,10 @@ int touchpad_read_device(char *data, int len)
|
|||
{
|
||||
/* for HDD6330 an absolute packet will follow for sensor nr 0 which we ignore */
|
||||
#if defined(PHILIPS_HDD6330)
|
||||
if ((data[3]>>6) == 0) syn_read(tmp, 4);
|
||||
if ((data[3]>>6) == 0)
|
||||
syn_read(tmp, 4);
|
||||
else
|
||||
tmp[1] = 0x0; /* Initialize explicitly */
|
||||
// relay tap gesture packet
|
||||
if (tmp[1]==0x02) { data[1]=0x02; data[2]=0x00; data[3]=0x00; }
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue