FS12845: Fix uninitialized read

Change-Id: If0e5b65a70e10b624416e2a15e0b3df29c2b4591
This commit is contained in:
Solomon Peachy 2021-05-19 17:09:48 -04:00
parent 3ed035769c
commit 0c62177575

View file

@ -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