mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
net: hns3: fix kernel crash when devlink reload during initialization
[ Upstream commit35d92abfba] 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:cd6242991d("net: hns3: add support for registering devlink for VF") Fixes:93305b77ff("net: hns3: fix kernel crash when devlink reload during pf initialization") Signed-off-by: Yonglong Liu <liuyonglong@huawei.com> Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fa2c7e7646
commit
72ede790f5
2 changed files with 9 additions and 18 deletions
Loading…
Add table
Add a link
Reference in a new issue