openwrt/target/linux/realtek
Sander Vanheule bde6311569 realtek: don't unmask non-maskable GPIO IRQs
On uniprocessor builds, for_each_cpu(cpu, mask) will assume 'mask'
always contains exactly one CPU, and ignore the actual mask contents.
This causes the loop to run, even when it shouldn't on an empty mask,
and tries to access an uninitialised pointer.

Fix this by wrapping the loop in a cpumask_empty() check, to ensure it
will not run on uniprocessor builds if the CPU mask is empty.

Fixes: af6cd37f42 ("realtek: replace RTL93xx GPIO patches")
Reported-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Reported-by: Robert Marko <robimarko@gmail.com>
Tested-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
2022-05-30 07:21:03 +02:00
..
base-files realtek: add ZyXEL GS1900-24HP v1 support 2022-04-16 17:26:56 +02:00
dts-5.10 realtek: add support for ZyXEL GS1900-16 2022-05-07 17:23:45 +02:00
files/firmware/rtl838x_phy
files-5.10 realtek: do not reset SerDes on link change 2022-05-11 22:23:50 +02:00
image realtek: add support for ZyXEL GS1900-16 2022-05-07 17:23:45 +02:00
patches-5.10 realtek: don't unmask non-maskable GPIO IRQs 2022-05-30 07:21:03 +02:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x config: limit CONFIG_DEBUG_INFO to top-level generic configs 2022-05-18 13:32:06 +03:00
rtl839x config: limit CONFIG_DEBUG_INFO to top-level generic configs 2022-05-18 13:32:06 +03:00
rtl930x config: limit CONFIG_DEBUG_INFO to top-level generic configs 2022-05-18 13:32:06 +03:00
rtl931x config: limit CONFIG_DEBUG_INFO to top-level generic configs 2022-05-18 13:32:06 +03:00
Makefile realtek: Fix tc default package 2022-03-29 13:43:01 +02:00