]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: spacemit: add failure check for spacemit_i2s_init_dai()
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Tue, 28 Oct 2025 01:32:09 +0000 (09:32 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 28 Oct 2025 10:17:34 +0000 (10:17 +0000)
commit7a78e387654f20e798ceab5bae9c1f5557416431
tree434229d125c7bfbb3ced01b117218ac41291ceb5
parentd29479abaded34b2b1dab2e17efe96a65eba3d61
ASoC: spacemit: add failure check for spacemit_i2s_init_dai()

Add error handling when memory allocation for dai fails in
spacemit_i2s_init_dai() call.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/aPtiNCZ_KBezL2Dr@stanley.mountain/#t
Fixes: fce217449075 ("ASoC: spacemit: add i2s support for K1 SoC")
Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Closes: tag. It would be easy to make the argument that the
Link: https://patch.msgid.link/20251028-fix-k1-i2s-v2-1-a547c15ed5c3@linux.spacemit.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/spacemit/k1_i2s.c