]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: don't panic in error path on non-msix systems
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Mon, 15 Apr 2019 11:43:04 +0000 (14:43 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 18 Apr 2019 11:07:39 +0000 (14:07 +0300)
commit0a78d1aefc459e8e41d69160e94af327bd9da378
treea8df92050c1f296e2f39e53c792b9f7ae4241d61
parentfd279fc05fa20ca7404ffde7c25e9b72d6bf0e3e
iwlwifi: don't panic in error path on non-msix systems

The driver uses msix causes-register to handle both msix and non msix
interrupts when performing sync nmi.  On devices that do not support
msix this register is unmapped and accessing it causes a kernel panic.

Solve this by differentiating the two cases and accessing the proper
causes-register in each case.

Reported-by: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/trans.c