diff options
| author | Geert Uytterhoeven <[email protected]> | 2016-10-03 15:43:41 +0000 |
|---|---|---|
| committer | Geert Uytterhoeven <[email protected]> | 2016-11-10 09:10:33 +0000 |
| commit | ab6a713e7dc2f92ad3bc3387122524655431501e (patch) | |
| tree | 2c77f6c81d3665f4e1af5c75d1a989fa55dfd17b /net/unix/af_unix.c | |
| parent | base: soc: Introduce soc_device_match() interface (diff) | |
| download | kernel-ab6a713e7dc2f92ad3bc3387122524655431501e.tar.gz kernel-ab6a713e7dc2f92ad3bc3387122524655431501e.zip | |
base: soc: Check for NULL SoC device attributes
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 <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
