[lkml]   [2016]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 3/4] base: soc: Check for NULL SoC device attributes
On Tuesday, October 4, 2016 11:09:26 AM CEST 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 <>

Acked-by: Arnd Bergmann <>

 \ /
  Last update: 2016-10-10 16:16    [W:0.145 / U:1.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site