]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: don't use vid 0
authorSara Sharon <sara.sharon@intel.com>
Tue, 21 Jun 2016 08:13:47 +0000 (11:13 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 6 Jul 2016 06:59:28 +0000 (09:59 +0300)
commitb33277c84275e8fac76a74ea44633d4a139fcc39
treeea4ca01d69b7e3b403cf88be0be36f3c6d23c9c0
parent560ee84a01a94ad9cce25012869497737866d40c
iwlwifi: pcie: don't use vid 0

In cases of hardware or DMA error, the vid read from
a zeroed location will be 0, and we will access the rxb
at index 0 in the global table, while it may be NULL or
owned by hardware.
Invalidate vid 0 in order to detect the situation and
bail out.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/rx.c