wifi: iwlwifi: dbg: use bit of DRAM alloc ID to store failed allocs
authorRotem Saado <rotem.saado@intel.com>
Wed, 2 Nov 2022 14:59:52 +0000 (16:59 +0200)
committerGregory Greenman <gregory.greenman@intel.com>
Thu, 10 Nov 2022 11:26:48 +0000 (13:26 +0200)
commitae5ecbb0c39e4a5872b9e6f31fb0ce350edd833a
tree5db168619388b4e1297121643a3879cd586bba3c
parentb79d2219e9352f7972035c9e07da3e1f4d2b2572
wifi: iwlwifi: dbg: use bit of DRAM alloc ID to store failed allocs

The failed_alloc variable is used as a bitmask in the loop where we
check DRAM allocations.  But erroneously, we were clearing the DRAM
alloc IDs we removed as an integer.

Fix that by clearing them as bits instead.

Signed-off-by: Rotem Saado <rotem.saado@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20221102165239.688dec28b1d9.I470b8d29c28d16f25f4192773f075940de7ed33c@changeid
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c