can: cc770: store echo skb before starting the transfer
authorWolfgang Grandegger <wg@grandegger.com>
Mon, 12 Dec 2011 15:07:16 +0000 (16:07 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 2 Feb 2012 23:24:59 +0000 (00:24 +0100)
commit7bb4db93ae59e0faf810a83a8578f56bc968ab01
tree416de109d52a28d60759d0dd44b18416a8c4d445
parent6e9d554fa6e481a848358c215f129432262123c0
can: cc770: store echo skb before starting the transfer

On slow systems and high CAN bitrates, the error message
"can_put_echo_skb: BUG! echo_skb is occupied!" did show up because
can_put_echo_skb() was called after starting the transfer.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/cc770/cc770.c