In the Linux kernel, the following vulnerability has been resolved:
bnxten: Fix error handling path in bnxtinit_chip()
WARNON() is triggered in _flushwork() if bnxtinitchip() fails because we call cancelwork_sync() on dim work that has not been initialized.
WARNING: CPU: 37 PID: 5223 at kernel/workqueue.c:4201 _flushwork.isra.0+0x212/0x230
The driver relies on the BNXTSTATENAPIDISABLED bit to check if dim work has already been cancelled. But in the bnxtopen() path, BNXTSTATENAPIDISABLED is not set and this causes the error path to think that it needs to cancel the uninitalized dim work. Fix it by setting BNXTSTATENAPIDISABLED during initialization. The bit will be cleared when we enable NAPI and initialize dim work.