projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83340b8
)
ASoC: TAS2781: Fix tasdev_load_calibrated_data()
author
Dan Carpenter
<dan.carpenter@linaro.org>
Fri, 19 Jul 2024 23:53:48 +0000
(18:53 -0500)
committer
Mark Brown
<broonie@kernel.org>
Mon, 22 Jul 2024 12:04:51 +0000
(13:04 +0100)
This function has a reversed if statement so it's either a no-op or it
leads to a NULL dereference.
Fixes:
b195acf5266d
("ASoC: tas2781: Fix wrong loading calibrated data sequence")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link:
https://patch.msgid.link/18a29b68-cc85-4139-b7c7-2514e8409a42@stanley.mountain
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2781-fmwlib.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/tas2781-fmwlib.c
b/sound/soc/codecs/tas2781-fmwlib.c
index
63626b9
..
8f9a3ae
100644
(file)
--- a/
sound/soc/codecs/tas2781-fmwlib.c
+++ b/
sound/soc/codecs/tas2781-fmwlib.c
@@
-2162,7
+2162,7
@@
static void tasdev_load_calibrated_data(struct tasdevice_priv *priv, int i)
return;
cal = cal_fmw->calibrations;
- if (cal)
+ if (
!
cal)
return;
load_calib_data(priv, &cal->dev_data);