The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/1] EDAC/altera: Guard against NULL of_node
@ 2026-08-06 16:10 Dinh Nguyen
  2026-08-06 16:10 ` [PATCH 1/1] EDAC/altera: Guard against NULL of_node pointer dereference Dinh Nguyen
  2026-08-06 18:16 ` [PATCH 0/1] EDAC/altera: Guard against NULL of_node Borislav Petkov
  0 siblings, 2 replies; 3+ messages in thread
From: Dinh Nguyen @ 2026-08-06 16:10 UTC (permalink / raw)
  To: bp, tony.luck
  Cc: dinguyen, rounakdas2025, niravkumar.l.rabara, linux-edac,
	linux-kernel

Hi EDAC maintainers,

I wanted to explain the reason why I think this patch doesn't need a
Fixes tag. The way the Altera EDAC is written there are many instances
of the driver referencing the of_node, which is why they are flagged in
many sashiko reviews.

This patch checks for those NULL of_node in the probe functions using
dev_of_node() so we don't have to guard the of_node in all the other
functions.

The reason we don't need the Fixes tag is because this system is
supposed to run with CONFIG_OF enabled. The system would fail way
before it gets to this driver if an of_node is not found. Thus I don't
see a need for a Fixes tag but the guard should be in place for
completeness.

Thanks,

Dinh Nguyen (1):
  EDAC/altera: Guard against NULL of_node pointer dereference

 drivers/edac/altera_edac.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

-- 
2.42.0.411.g813d9a9188


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-06 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06 16:10 [PATCH 0/1] EDAC/altera: Guard against NULL of_node Dinh Nguyen
2026-08-06 16:10 ` [PATCH 1/1] EDAC/altera: Guard against NULL of_node pointer dereference Dinh Nguyen
2026-08-06 18:16 ` [PATCH 0/1] EDAC/altera: Guard against NULL of_node Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox