[PATCH net-next v3 1/3] can: mscan: fix improper return if dlc 8 in start_xmit function

2010-01-07 Thread Wolfgang Grandegger
From: Wolfgang Grandegger w...@denx.de The start_xmit function of the MSCAN Driver did return improperly if the CAN dlc check failed (skb not freed and invalid return code). This patch adds a proper check of the frame lenght and data size and returns now correctly. Furthermore, a typo has been

Re: [PATCH net-next v3 1/3] can: mscan: fix improper return if dlc 8 in start_xmit function

2010-01-07 Thread Oliver Hartkopp
Wolfgang Grandegger wrote: The start_xmit function of the MSCAN Driver did return improperly if the CAN dlc check failed (skb not freed and invalid return code). This patch adds a proper check of the frame lenght and data size and returns now correctly. @@ -177,8 +177,13 @@ static