diff options
author | Yonglong Liu <[email protected]> | 2024-05-07 21:42:24 +0800 |
---|---|---|
committer | Paolo Abeni <[email protected]> | 2024-05-09 10:47:32 +0200 |
commit | 35d92abfbad88cf947c010baf34b075e40566095 (patch) | |
tree | 12df9eccf87e84f01b62ea2b68c53959c7bbea2f /net/ipv4/tcp_input.c | |
parent | f5db7a3b65c84d723ca5e2bb6e83115180ab6336 (diff) |
net: hns3: fix kernel crash when devlink reload during initialization
The devlink reload process will access the hardware resources,
but the register operation is done before the hardware is initialized.
So, processing the devlink reload during initialization may lead to kernel
crash.
This patch fixes this by registering the devlink after
hardware initialization.
Fixes: cd6242991d2e ("net: hns3: add support for registering devlink for VF")
Fixes: 93305b77ffcb ("net: hns3: fix kernel crash when devlink reload during pf initialization")
Signed-off-by: Yonglong Liu <[email protected]>
Signed-off-by: Jijie Shao <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions