commit | 3b07a444ee48a8081d2ed3f0abeeabd038404ac1 | [log] [tgz] |
---|---|---|
author | Ahmed S. Darwish <ahmed.darwish@valeo.com> | Mon Jan 26 07:27:19 2015 +0200 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Wed Jan 28 13:39:37 2015 +0100 |
tree | ea72a3af95e8f495b736d3c684d464c708673462 | |
parent | ff660f75be36e6db75d45dc742a4a468c5a9c20d [diff] |
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 <mkl@pengutronix.de> Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com> Acked-by: Andri Yngvason <andri.yngvason@marel.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>