[U-Boot] [PATCH v2 03/11] net: Only call halt on a driver that has been init'ed

Simon Glass sjg at chromium.org
Sat Jun 30 04:20:06 UTC 2018


On 29 June 2018 at 20:20, Joe Hershberger <joe.hershberger at ni.com> wrote:
> With driver model, we were not checking if the state of the device was
> marked as active before calling the halt function. Check that the device
> is probed and also marked as active. This avoids the case where we were
> calling halt on the first device in net_init() and the driver would
> operate on bogus data structures causing problems. In this case, the
> priv was all 0, so halt() would close STDIN.
>
> Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
> ---
>
> Changes in v2: None
>
>  net/eth-uclass.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list