diff options
| author | Colin Ian King <[email protected]> | 2020-08-19 17:01:03 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-08-20 20:30:33 +0100 |
| commit | a467f2f8ad5f9a21f92b3fa6ad2aac90fa7054fe (patch) | |
| tree | 5a211283f7e45e8130e6cbcbed378187f60d4bf8 /tools/perf/scripts/python/bin | |
| parent | 1eb629363aa354e63f55f6680b0724165cf2088d (diff) | |
ASoC: qcom: add missing out of memory check on drvdata->clks allocation
Currently drvdata->clks is not being checked for an allocation failure,
leading to potential null pointer dereferencing. Fix this by adding a
check and returning -ENOMEM if an error occurred.
Fixes: 1220f6a76e77 ("ASoC: qcom: Add common array to initialize soc based core clocks")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Rohit kumar <[email protected]>
Addresses-Coverity: ("Dereference null return value")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions