summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorLeonid Iziumtsev <[email protected]>2018-05-08 15:55:50 +0200
committerJoe Hershberger <[email protected]>2018-06-13 13:54:16 -0500
commit60177b26171a8f13be1b2d061db36784fc86a861 (patch)
tree87969872714b7b73deba1551e68b9d207608a047 /include/linux/kernel.h
parent552e7c57d035792c8939d86f276624e2614b936b (diff)
net: Protect net_state from reentrant net_loop()
Global variable "net_state" is used in net_loop() state-machine. But it happens that some times the net_loop() can be called multiple times in the same call stack. For example when the netconsole is enabled and we print the message while some other net protocol is in action. Netconsole will overwrite the "net_state" and that will break the logic for earlier started protocol. To protect the state save and restore "net_state" variable each time when we enter and exit net_loop(). Signed-off-by: Leonid Iziumtsev <[email protected]> Acked-by: Joe Hershberger <[email protected]>
Diffstat (limited to 'include/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions