linux_dsm_epyc7002/sound/soc/xilinx
Gustavo A. R. Silva 1d38b4e903
ASoC: xlnx: fix error handling in xlnx_formatter_pcm_probe
Currently, if platform_get_irq_byname() fails, the returned error
turns into a huge value, once it is being store into a variable
of type unsigned int, hence never actually reporting any error
and causing unexpected behavior when using the values stored
in aud_drv_data->s2mm_irq and aud_drv_data->mm2s_irq.

Fix this by changing the type of variables s2mm_irq and mm2s_irq in
structure xlnx_pcm_drv_data from unsigned int to int.

Addresses-Coverity-ID: 1476096 ("Unsigned compared against 0")
Fixes: 796175a94a7f ("ASoC: xlnx: add pcm formatter platform driver")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-01-03 16:34:37 +00:00
..
Kconfig ASoC: xlnx: enable audio formatter driver build 2019-01-03 16:34:22 +00:00
Makefile ASoC: xlnx: enable audio formatter driver build 2019-01-03 16:34:22 +00:00
xlnx_formatter_pcm.c ASoC: xlnx: fix error handling in xlnx_formatter_pcm_probe 2019-01-03 16:34:37 +00:00
xlnx_i2s.c ASoC: xlnx: change license header format style 2019-01-03 16:32:51 +00:00