Thread (1 message) 1 message, 1 author, 2016-10-19
STALE3531d REVIEWED: 18 (18M)
Revisions (3)
  1. v1 [diff vs current]
  2. v1 current
  3. v2 [diff vs current]

[PATCH 3/4] base: soc: Check for NULL SoC device attributes

From: gregkh@linuxfoundation.org (Greg Kroah-Hartman)
Date: 2016-10-19 08:26:49

On Tue, Oct 04, 2016 at 11:09:26AM +0200, Geert Uytterhoeven wrote:
If soc_device_match() is used to check the value of a specific
attribute that is not present for the current SoC, the kernel crashes
with a NULL pointer dereference.

Fix this by explicitly checking for the absence of a needed property,
and considering this a non-match.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help