Skip to content
Commit 407ceeee authored by Michael Scott's avatar Michael Scott Committed by Jukka Rissanen
Browse files

net: if: Make sure iface->if_dev is not null when accessing L2



commit 971ae599 ("net: pkt: Make sure iface is not null when
accessing L2") fixed net_if_l2 where iface was NULL, however if
iface->if_dev is NULL, the check breaks and returns an offset of
NULL (0x82 or so).  This is incorrect.

Let's add a check for iface->if_dev as well.

Signed-off-by: default avatarMichael Scott <mike@foundries.io>
parent 6f654bba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment