From: Thomas Gleixner Date: Fri, 11 Apr 2014 08:13:12 +0000 (+0000) Subject: can: c_can: Handle state change correctly X-Git-Tag: omap-for-v3.16/fixes-against-rc1~214^2~39^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f058d548e8071a1d148d6ebd94888d011c3ca71e;p=pandora-kernel.git can: c_can: Handle state change correctly If the allocation of an error skb fails, the state change handling returns w/o doing any work. That leaves the interface in a wreckaged state as the internal status is wrong. Split the interface handling and the skb handling. Signed-off-by: Thomas Gleixner Tested-by: Alexander Stein Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed