diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-01-15 11:57:23 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-31 08:14:34 +0100 |
commit | 4fedd516d5548aa3841b66b61d75ea4c40e7e08e (patch) | |
tree | f358b92d787777b563e9899f09ea5716c0dbbc4b /init | |
parent | d6847f539bd6ac2f8b75f0a6ae65c0955985d003 (diff) | |
download | talos-obmc-linux-4fedd516d5548aa3841b66b61d75ea4c40e7e08e.tar.gz talos-obmc-linux-4fedd516d5548aa3841b66b61d75ea4c40e7e08e.zip |
ASoC: rt5514-spi: Fix potential NULL pointer dereference
commit 060d0bf491874daece47053c4e1fb0489eb867d2 upstream.
There is a potential NULL pointer dereference in case devm_kzalloc()
fails and returns NULL.
Fix this by adding a NULL check on rt5514_dsp.
This issue was detected with the help of Coccinelle.
Fixes: 6eebf35b0e4a ("ASoC: rt5514: add rt5514 SPI driver")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions