summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorMichael Zaidman <michael.zaidman@gmail.com>2022-11-06 00:11:49 +0300
committerJiri Kosina <jkosina@suse.cz>2022-11-11 13:09:36 +0300
commitc2500bdffe5a95fbd0aecdd5be3d2f175ad22f92 (patch)
treee528f44b71df94400fd7970b89c70c501d0f5ebb /tools/perf/scripts/python/export-to-sqlite.py
parent4b3da6853a619a952e8caf2e8393264dd42ffa27 (diff)
downloadlinux-c2500bdffe5a95fbd0aecdd5be3d2f175ad22f92.tar.xz
HID: ft260: fix a NULL pointer dereference in ft260_i2c_write
The zero-length passed into the ft260_i2c_write() triggered the NULL pointer dereference in the debug message on data[0] access. Since the controller does not support a write of zero length, let's not allow it. Before: $ sudo i2ctransfer -y 13 w0@0x51 Killed After: $ sudo i2ctransfer -y 13 w0@0x51 Error: Sending messages failed: Invalid argument Reported-by: Enrik Berkhan <Enrik.Berkhan@inka.de> Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions