]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: codecs: Fix error check in es8323_i2c_probe
authorTang Bin <tangbin@cmss.chinamobile.com>
Fri, 11 Oct 2024 07:31:15 +0000 (15:31 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 11 Oct 2024 10:22:46 +0000 (11:22 +0100)
commitc1789209701143b50cba3783fa800a23df30a088
tree2bfc17d2341e2960a2966d6c4ab1afe6062a86df
parenta0aae96be5ffc5b456ca07bfe1385b721c20e184
ASoC: codecs: Fix error check in es8323_i2c_probe

In the function es8323_i2c_probe(), devm_kzalloc() could
possibly return NULL pointer, so IS_ERR() is wrong check
in this place, thus fix it.

Fixes: b97391a604b9 ("ASoC: codecs: Add support for ES8323")
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241011073115.2384-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/es8323.c