Skip to content
Commit ff11a8ee authored by Luca Coelho's avatar Luca Coelho
Browse files

iwlwifi: pnvm: increment the pointer before checking the TLV



If the SKU_ID doesn't match, we don't increment the pointer and keep
checking the same TLV over and over again.

We need to increment the pointer in all situtations, namely if the TLV
is not a SKU_ID, if the SKU_ID matched or if the SKU_ID didn't match.
So we can increment the pointer already before checking for these
conditions to solve the problem.

Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Fixes: 69725928

 ("iwlwifi: read and parse PNVM file")
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210210172142.de94d366f3ff.I9a5a54906cf0f4ec8af981d6066bfd771152ffb9@changeid
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 25df65ae
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment