Skip to content
Commit ff3416fb authored by Marc Kleine-Budde's avatar Marc Kleine-Budde
Browse files

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: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 097d3c95
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment