[U-Boot] [PATCH] net: eth-uclass: call stop only for active devices

Bin Meng bmeng.cn at gmail.com
Thu Feb 21 03:00:34 UTC 2019

On Wed, Feb 20, 2019 at 8:33 PM Keerthy <j-keerthy at ti.com> wrote:
> Currently stop is being called unconditionally without even
> checking if start is called. In case of multiple instances eth
> being present many devices might just be initialized without
> a start call in such cases stop might lead unpredictable behaviors
> including aborts and crashes. Hence add a check before calling stop.
> Signed-off-by: Keerthy <j-keerthy at ti.com>
> ---
>  net/eth-uclass.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Could you please provide a test case?


More information about the U-Boot mailing list