summaryrefslogtreecommitdiff
path: root/include/linux/linux_string.h
diff options
context:
space:
mode:
authorJoe Hershberger <[email protected]>2018-07-02 14:47:46 -0500
committerJoe Hershberger <[email protected]>2018-07-26 14:08:17 -0500
commit68acb51f442f08152f79772af3d41ff1e4c817cd (patch)
tree400d605d09042c36631d7aeeaa84ec427e56db3f /include/linux/linux_string.h
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions