[U-Boot] [PATCH v1 2/3] net: eth-uclass: Fix for DM USB ethernet support

Joe Hershberger joe.hershberger at ni.com
Tue Jun 12 18:32:13 UTC 2018


On Mon, Jun 4, 2018 at 5:31 AM, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
> 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 at ti.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list