]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: make sure prph_info is set when treating wakeup IRQ
authorLuca Coelho <luciano.coelho@intel.com>
Sun, 19 Dec 2021 11:28:34 +0000 (13:28 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 21 Dec 2021 10:38:16 +0000 (12:38 +0200)
commit3423485c73c163151ccf9cff1631798b5e644e78
tree07422ac8356096b2fb092b68fd9b40f3ec211def
parent15d12128d410b9a8ade7500c8c8f7d6def67b355
iwlwifi: pcie: make sure prph_info is set when treating wakeup IRQ

In some rare cases when the HW is in a bad state, we may get this
interrupt when prph_info is not set yet.  Then we will try to
dereference it to check the sleep_notif element, which will cause an
oops.

Fix that by ignoring the interrupt if prph_info is not set yet.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211219132536.0537aa562313.I183bb336345b9b3da196ba9e596a6f189fbcbd09@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c