]> 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)
commit6157c50d82d7bf701083de8b9f521451f938da3c
treea8df92050c1f296e2f39e53c792b9f7ae4241d61
parentf61f5e6dac5cda9b3900362b7b9ef9c7885086e4
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