Skip to content
Snippets Groups Projects
Commit c3211708 authored by Jean-Jacques Hiblot's avatar Jean-Jacques Hiblot Committed by Marek Vasut
Browse files

net: eth-uclass: Fix for DM USB ethernet support


When a USB ethernet device is halted, the device driver is removed. When
this happens the uclass private memory is freed and uclass_priv is set to
NULL. This causes a data abort when uclass_priv->state is then set to
ETH_STATE_PASSIVE.

Fix it by checking if uclass_priv is NULL before setting uclass_priv->state

Signed-off-by: default avatarJean-Jacques Hiblot <jjhiblot@ti.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent c73251ea
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment