diff options
author | Greg Ungerer <gerg@uclinux.org> | 2014-10-21 15:57:48 +1000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-22 11:05:54 +0100 |
commit | 9a2d3635524fe80d9e23623b2fe4a2113045f8d8 (patch) | |
tree | bf32e9630ecff25d1f110fdcfe36f4ea63396f6c /security/lsm_audit.c | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) | |
download | op-kernel-dev-9a2d3635524fe80d9e23623b2fe4a2113045f8d8.zip op-kernel-dev-9a2d3635524fe80d9e23623b2fe4a2113045f8d8.tar.gz |
spi: orion: fix potential NULL pointer de-reference
It's possible that the call to of_match_device() (introduced in commit
df59fa7f ["spi: orion: support armada extended baud rates"]) may return
a NULL if there is no match in the device tree (or perhaps no device tree
at all). Check the return pointer and set the local device data to the
lowest common denominator orion device data if it is NULL.
Reported-by: Karl Beldan <karl.beldan@gmail.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'security/lsm_audit.c')
0 files changed, 0 insertions, 0 deletions