Skip to content

Commit 51be301

Browse files
Dan Carpentergregkh
authored andcommitted
ASoC: TAS2781: Fix tasdev_load_calibrated_data()
[ Upstream commit 92c7822 ] 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 <dan.carpenter@linaro.org> Link: https://patch.msgid.link/18a29b68-cc85-4139-b7c7-2514e8409a42@stanley.mountain Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 1978d91 commit 51be301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/tas2781-fmwlib.c

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

21652165
cal = cal_fmw->calibrations;
2166-
if (cal)
2166+
if (!cal)
21672167
return;
21682168

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

0 commit comments

Comments
 (0)