diff options
author | Miri Korenblit <miriam.rachel.korenblit@intel.com> | 2025-02-09 14:34:46 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2025-02-11 12:41:45 +0100 |
commit | 3f8aa0b8a53df2247a84eaf3b3aa38b6ef86cb1c (patch) | |
tree | 08c3f1734408a8f12b657bcbbd7f0bfd0bc994a8 /tools/perf/scripts/python | |
parent | 7774e3920029398ad49dc848b23840593f14d515 (diff) |
wifi: iwlwifi: fw: avoid using an uninitialized variable
iwl_fwrt_read_err_table can return true also when it failed to read
the memory. In this case, err_id argument is not initialized,
but the callers are still using it.
Simply initialize it to 0. If the error table was read successfully it'll
be overridden.
Fixes: 43e0b2ada519 ("wifi: iwlwifi: fw: add an error table status getter")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Link: https://patch.msgid.link/20250209143303.37cdbba4eb56.I95fe9bd95303b8179f946766558a9f15f4fe254c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions