Mon, Mar 18, 2024 at 02:29:47PM CET, shaojijie@xxxxxxxxxx wrote:
From: Yonglong Liu <liuyonglong@xxxxxxxxxx>Fix your locking, you should take devl_lock during your init. That would
The devlink reload process will access the hardware resources,
but the register operation is done before the hardware is initialized.
so, if process the devlink reload during initialization, may lead to kernel
crash. This patch fixes this by checking whether the NIC is initialized.
disallow reload to race with it.
pw-bot: cr