Skip to content

Commit ed95983

Browse files
Dan Carpenterbroonie
authored andcommitted
ASoC: tas2781: Fix error code in tas2781_load_calibration()
Return -EINVAL instead of success on this error path. Fixes: 915f5ea ("ASoC: tas2781: firmware lib") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/Message-Id: <729bb6b3-bc1d-4b3d-8b65-077a492c753c@moroto.mountain> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1547563 commit ed95983

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

sound/soc/codecs/tas2781-fmwlib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,7 @@ int tas2781_load_calibration(void *context, char *file_name,
19241924
if (!fw_entry->size) {
19251925
dev_err(tas_priv->dev, "%s: file read error: size = %lu\n",
19261926
__func__, (unsigned long)fw_entry->size);
1927+
ret = -EINVAL;
19271928
goto out;
19281929
}
19291930
fmw.size = fw_entry->size;

0 commit comments

Comments
 (0)