aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorJunjie Cao <junjie.cao@intel.com>2025-10-16 09:49:19 +0800
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>2025-11-12 09:54:46 +0200
commitf4c737d44969c38dac2478039d353edddffd120d (patch)
treec641bd22f3530ce0d69d7ad351264fdaab7e9f77 /drivers/acpi/cppc_acpi.c
parentwifi: mwl8k: inject DSSS Parameter Set element into beacons if missing (diff)
downloadwireguard-linux-f4c737d44969c38dac2478039d353edddffd120d.tar.xz
wireguard-linux-f4c737d44969c38dac2478039d353edddffd120d.zip
wifi: iwlwifi: fix aux ROC time event iterator usage
The list_for_each_entry() iterator must not be used outside the loop. Even though we break and check for NULL, doing so still violates kernel iteration rules and triggers Coccinelle's use_after_iter.cocci warning. Cache the matched entry in aux_roc_te and use it consistently after the loop. This follows iterator best practices, resolves the warning, and makes the code more maintainable. Signed-off-by: Junjie Cao <junjie.cao@intel.com> Link: https://patch.msgid.link/20251016014919.383565-1-junjie.cao@intel.com Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions