summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorStephane Grosjean <s.grosjean@peak-system.com>2019-10-08 10:35:44 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2019-11-04 21:47:20 +0100
commitde280f403f2996679e2607384980703710576fed (patch)
treebae51f20f837c6e9f37ffd8ba6082aab286fd139 /tools/perf/scripts/python/exported-sql-viewer.py
parent5e269324db5adb2f5f6ec9a93a9c7b0672932b47 (diff)
can: peak_usb: fix a potential out-of-sync while decoding packets
When decoding a buffer received from PCAN-USB, the first timestamp read in a packet is a 16-bit coded time base, and the next ones are an 8-bit offset to this base, regardless of the type of packet read. This patch corrects a potential loss of synchronization by using a timestamp index read from the buffer, rather than an index of received data packets, to determine on the sizeof the timestamp to be read from the packet being decoded. Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com> Fixes: 46be265d3388 ("can: usb: PEAK-System Technik PCAN-USB specific part") Cc: linux-stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions