Skip to content
Commit c48c8c1e authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Marc Kleine-Budde
Browse files

can: j1939: main: j1939_ndev_to_priv(): avoid crash if can_ml_priv is NULL



This patch avoids a NULL pointer deref crash if ndev->ml_priv is NULL.

Reported-by: default avatar <syzbot+95c8e0d9dffde15b6c5c@syzkaller.appspotmail.com>
Fixes: 9d71dd0c ("can: add support of SAE J1939 protocol")
Signed-off-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
parent 25fe97cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment