commit | d21faa5447aa27d33519ebafbae15afabac0d29a | [log] [tgz] |
---|---|---|
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | Thu Aug 09 16:17:41 2018 +0200 |
committer | Marek Vasut <marex@denx.de> | Tue Aug 21 16:21:37 2018 +0200 |
tree | 74a9010dce505f97d25d2cd049cd4f7351ef56cc | |
parent | d9680f64ce4300d4974391c0e801d4a62e3da401 [diff] |
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: Jean-Jacques Hiblot <jjhiblot@ti.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>