diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-05-18 10:22:22 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2017-06-09 11:39:23 +0200 |
commit | ff3416fb5b02cfae94591ef4395b0b4dc793f25e (patch) | |
tree | f90733085bb44784ab6d8175cd3830aad4e5d93c /drivers/net/can/peak_canfd | |
parent | net: vrf: Make add_fib_rules per network namespace flag (diff) | |
download | linux-ff3416fb5b02cfae94591ef4395b0b4dc793f25e.tar.xz linux-ff3416fb5b02cfae94591ef4395b0b4dc793f25e.zip |
can: dev: make can_change_state() robust to be called with cf == NULL
In OOM situations where no skb can be allocated, can_change_state() may
be called with cf == NULL. As this function updates the state and error
statistics it's not an option to skip the call to can_change_state() in
OOM situations.
This patch makes can_change_state() robust, so that it can be called
with cf == NULL.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/peak_canfd')
0 files changed, 0 insertions, 0 deletions