From: Ahmed S. Darwish Date: Mon, 26 Jan 2015 05:27:19 +0000 (+0200) Subject: can: kvaser_usb: Update interface state before exiting on OOM X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~99^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b07a444ee48a8081d2ed3f0abeeabd038404ac1;p=pandora-kernel.git can: kvaser_usb: Update interface state before exiting on OOM Update all of the can interface's state and error counters before trying any skb allocation that can actually fail with -ENOMEM. Suggested-by: Marc Kleine-Budde Signed-off-by: Ahmed S. Darwish Acked-by: Andri Yngvason Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed