Re: [PATCH 1/2] can/peak_usb: fix a potential out-of-sync while decoding packets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/8/19 10:35 AM, Stephane Grosjean wrote:
> 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@xxxxxxxxxxxxxxx>

Added to linux-can.

tnx,
Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux