From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Kleine-Budde Subject: Re: [PATCH] pcan_usb: fix wrong memcpy() bytes length Date: Fri, 09 Aug 2013 11:45:31 +0200 Message-ID: <5204BA3B.1060704@pengutronix.de> References: <1375951951-18507-1-git-send-email-s.grosjean@peak-system.com> <52036B60.7090701@pengutronix.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f5o73EDxnfsislOdBiEUWGjT4AAQHpmsr" Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:52083 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965287Ab3HIJpl (ORCPT ); Fri, 9 Aug 2013 05:45:41 -0400 In-Reply-To: <52036B60.7090701@pengutronix.de> Sender: linux-can-owner@vger.kernel.org List-ID: To: Stephane Grosjean Cc: linux-can Mailing List This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --f5o73EDxnfsislOdBiEUWGjT4AAQHpmsr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 08/08/2013 11:56 AM, Marc Kleine-Budde wrote: > On 08/08/2013 10:52 AM, Stephane Grosjean wrote: >> Fix possibly wrong memcpy() bytes length since some CAN records receiv= ed 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 reco= rd pointer >> but, only 8 bytes max. MUST be copied into the data field of the struc= t >> can_frame object of the skb given to the network core. >> >> Signed-off-by: Stephane Grosjean >=20 > Looks like a candidate for stable, doesn't it? Send pull request to David with stable on Cc. tnx, Marc --=20 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 | --f5o73EDxnfsislOdBiEUWGjT4AAQHpmsr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlIEujsACgkQjTAFq1RaXHPEJACfRNCe7JzKfeM5wodnKhNDX7pD v4sAnifIiWrGHM6aM3/75lf+fQ10N2Vb =6RmF -----END PGP SIGNATURE----- --f5o73EDxnfsislOdBiEUWGjT4AAQHpmsr--