summaryrefslogtreecommitdiff
path: root/board/broadcom/bcm11130_nand
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2018-07-02 14:47:46 -0500
committerJoe Hershberger <joe.hershberger@ni.com>2018-07-26 14:08:17 -0500
commit68acb51f442f08152f79772af3d41ff1e4c817cd (patch)
tree400d605d09042c36631d7aeeaa84ec427e56db3f /board/broadcom/bcm11130_nand
parentc6fa51a4997714dbd9a4ef64ffe25f4435ee93ef (diff)
net: Only call halt on a driver that has been init'ed
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@ni.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/broadcom/bcm11130_nand')
0 files changed, 0 insertions, 0 deletions