Re: [PATCH][next] ASoC: qcom: add missing out of memory check on drvdata->clks allocation

2020-08-20 Thread Mark Brown
On Wed, 19 Aug 2020 17:01:03 +0100, Colin King wrote: > 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. Applied to https://git.kernel.org/pub/scm/

Re: [PATCH][next] ASoC: qcom: add missing out of memory check on drvdata->clks allocation

2020-08-19 Thread Rohit Kumar
On 8/19/2020 9:31 PM, Colin King wrote: From: Colin Ian King 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. Addresses-Coverity: ("Dereference null

[PATCH][next] ASoC: qcom: add missing out of memory check on drvdata->clks allocation

2020-08-19 Thread Colin King
From: Colin Ian King 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. Addresses-Coverity: ("Dereference null return value") Fixes: 1220f6a76e77 ("ASoC: q