can: fix SJA1000 dlc for RTR packets
authorKurt Van Dijck <kurt.van.dijck@eia.be>
Mon, 2 May 2011 04:50:48 +0000 (04:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 May 2011 18:02:22 +0000 (11:02 -0700)
commit87e9af6cc67d842cd92b52b81f3f14e665e7ab05
tree965631795b4d21356a8d9a1935000fe9361c6ec5
parent75bd0cbdc21d80859c80bdd5dd00125c1a3ccbca
can: fix SJA1000 dlc for RTR packets

RTR frames do have a valid data length code on CAN.
The driver for SJA1000 did not handle that situation properly.

Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/sja1000/sja1000.c