aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorAndrew Duggan <[email protected]>2019-11-04 16:07:30 -0800
committerDmitry Torokhov <[email protected]>2019-11-04 16:11:50 -0800
commit5d40d95e7e64756cc30606c2ba169271704d47cb (patch)
treeddfe6d746b3120557fec0b75ec9508940a6a7acf /tools/perf/scripts/python/bin/export-to-postgresql-report
parentf6aabe1ff1d9d7bad0879253011216438bdb2530 (diff)
Input: synaptics-rmi4 - do not consume more data than we have (F11, F12)
Currently, rmi_f11_attention() and rmi_f12_attention() functions update the attn_data data pointer and size based on the size of the expected size of the attention data. However, if the actual valid data in the attn buffer is less then the expected value then the updated data pointer will point to memory beyond the end of the attn buffer. Using the calculated valid_bytes instead will prevent this from happening. Signed-off-by: Andrew Duggan <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions