[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130811.215218.820389949622900993.davem@davemloft.net>
Date: Sun, 11 Aug 2013 21:52:18 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: mkl@...gutronix.de
Cc: netdev@...r.kernel.org, kernel@...gutronix.de,
linux-can@...r.kernel.org, s.grosjean@...k-system.com,
stable@...r.kernel.org
Subject: Re: [PATCH] can: pcan_usb: fix wrong memcpy() bytes length
From: Marc Kleine-Budde <mkl@...gutronix.de>
Date: Fri, 9 Aug 2013 11:44:06 +0200
> From: Stephane Grosjean <s.grosjean@...k-system.com>
>
> Fix possibly wrong memcpy() bytes length since some CAN records received from
> PCAN-USB could define a DLC field in range [9..15].
> In that case, the real DLC value MUST be used to move forward the record pointer
> but, only 8 bytes max. MUST be copied into the data field of the struct
> can_frame object of the skb given to the network core.
>
> Cc: linux-stable <stable@...r.kernel.org>
> Signed-off-by: Stephane Grosjean <s.grosjean@...k-system.com>
> Signed-off-by: Marc Kleine-Budde <mkl@...gutronix.de>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists