diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2021-12-15 06:15:50 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-15 17:02:52 +0300 |
commit | 2167c0b205960607fb136b4bb3c556a62be1569a (patch) | |
tree | 1a140bde1408979b20d327331dca8e2ddb36d657 /Documentation/devicetree | |
parent | 28084f4a0e031a87b624ea121bd8fd782b90ff2a (diff) | |
download | linux-2167c0b205960607fb136b4bb3c556a62be1569a.tar.xz |
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: 450f0f6a8fb4 ("ASoC: rt5663: Add the manual offset field to compensate the DC offset")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20211215031550.70702-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions