Skip to content
Unverified Commit 2167c0b2 authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Mark Brown
Browse files

ASoC: rt5663: Handle device_property_read_u32_array error codes



The return value of device_property_read_u32_array() is not always 0.
To catch the exception in case that devm_kzalloc failed and the
rt5663->imp_table was NULL, which caused the failure of
device_property_read_u32_array.

Fixes: 450f0f6a ("ASoC: rt5663: Add the manual offset field to compensate the DC offset")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20211215031550.70702-1-jiasheng@iscas.ac.cn


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 28084f4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment