]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
can: restart device even if dev_alloc_skb() fails
authorWolfgang Grandegger <wg@grandegger.com>
Mon, 20 Jul 2009 04:06:40 +0000 (04:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2009 19:28:29 +0000 (12:28 -0700)
commitb3d0df7ca35018ebbc24fd102ed7021cf593ba74
tree109a3480057ceeb8807f91877470046965153893
parente2372902d84af3443d421a984d812ec87eeb0758
can: restart device even if dev_alloc_skb() fails

If dev_alloc_skb() failed in can_restart(), the device was left behind
in the bus-off state. This patch restarts the device nevertheless.

Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/dev.c