aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/unix_bpf.c
diff options
context:
space:
mode:
authorMaria Yu <[email protected]>2023-11-15 10:28:24 +0000
committerLinus Walleij <[email protected]>2023-11-15 10:40:15 +0000
commit4198a9b571065978632276264e01d71d68000ac5 (patch)
tree616aec36d2ab563b97ac9842660ee8e192808d17 /net/unix/unix_bpf.c
parentpinctrl: cy8c95x0: Fix doc warning (diff)
downloadkernel-4198a9b571065978632276264e01d71d68000ac5.tar.gz
kernel-4198a9b571065978632276264e01d71d68000ac5.zip
pinctrl: avoid reload of p state in list iteration
When in the list_for_each_entry iteration, reload of p->state->settings with a local setting from old_state will turn the list iteration into an infinite loop. The typical symptom when the issue happens, will be a printk message like: "not freeing pin xx (xxx) as part of deactivating group xxx - it is already used for some other setting". This is a compiler-dependent problem, one instance occurred using Clang version 10.0 on the arm64 architecture with linux version 4.19. Fixes: 6e5e959dde0d ("pinctrl: API changes to support multiple states per device") Signed-off-by: Maria Yu <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions