diff options
| author | Colin Ian King <colin.king@canonical.com> | 2019-10-24 13:46:10 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2019-10-25 11:05:47 +0100 |
| commit | f8a60435703bdde8f8a0ceb1aa8dad59df821583 (patch) | |
| tree | b6d14df605ddc541bb927f2457aa4dcb4ab7e185 /tools/perf/scripts/python/bin/export-to-postgresql-record | |
| parent | e42599d6bbf5aa48ae8a2942946b0f6194017fdf (diff) | |
| download | linux-f8a60435703bdde8f8a0ceb1aa8dad59df821583.tar.gz linux-f8a60435703bdde8f8a0ceb1aa8dad59df821583.zip | |
ASoC: rt5677: Add missing null check for failed allocation of rt5677_dsp
The allocation of rt5677_dsp can potentially fail and return null, so add
a null check and return -ENOMEM on a memory allocation failure.
Addresses-Coverity: ("Dereference null return")
Fixes: a0e0d135427c ("ASoC: rt5677: Add a PCM device for streaming hotword via SPI")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20191024124610.18182-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-record')
0 files changed, 0 insertions, 0 deletions
