Skip to content

Commit 92c7822

Browse files
Dan Carpenterbroonie
authored andcommitted
ASoC: TAS2781: Fix tasdev_load_calibrated_data()
This function has a reversed if statement so it's either a no-op or it leads to a NULL dereference. Fixes: b195acf ("ASoC: tas2781: Fix wrong loading calibrated data sequence") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 83340b8 commit 92c7822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/tas2781-fmwlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ static void tasdev_load_calibrated_data(struct tasdevice_priv *priv, int i)
21622162
return;
21632163

21642164
cal = cal_fmw->calibrations;
2165-
if (cal)
2165+
if (!cal)
21662166
return;
21672167

21682168
load_calib_data(priv, &cal->dev_data);

0 commit comments

Comments
 (0)