“fe176de0ffdc2dd300fbcece84434a32b482b5b1”上不存在“arch/x86/kernel/cpu/microcode/intel.c”
提交 91539341 编写于 作者: M Marc Zyngier

irqchip/gic: Correctly validate OF quirk descriptors

When checking for OF quirks, make sure either 'compatible' or 'property'
is set, and give up otherwise.

This avoids non-OF quirks being randomly applied as they don't have any
of the OF data that need checking.

Cc: Douglas Anderson <dianders@chromium.org>
Reported-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Tested-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Fixes: 44bd78dd ("irqchip/gic-v3: Disable pseudo NMIs on Mediatek devices w/ firmware issues")
Signed-off-by: NMarc Zyngier <maz@kernel.org>
上级 cddb536a
...@@ -16,6 +16,8 @@ void gic_enable_of_quirks(const struct device_node *np, ...@@ -16,6 +16,8 @@ void gic_enable_of_quirks(const struct device_node *np,
const struct gic_quirk *quirks, void *data) const struct gic_quirk *quirks, void *data)
{ {
for (; quirks->desc; quirks++) { for (; quirks->desc; quirks++) {
if (!quirks->compatible && !quirks->property)
continue;
if (quirks->compatible && if (quirks->compatible &&
!of_device_is_compatible(np, quirks->compatible)) !of_device_is_compatible(np, quirks->compatible))
continue; continue;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册