]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: intel_hdmi: Check for error num after setting mask
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Fri, 7 Jan 2022 02:08:51 +0000 (10:08 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 7 Jan 2022 07:25:32 +0000 (08:25 +0100)
commite0e8081b88ff4db2b3618f8dba811cfa48606d05
tree1c66c7283b7a53ca6fad4d8cbd36f77ad35cf979
parent86ae625f29056b1e45b9d78ed853d0d30518862f
ALSA: intel_hdmi: Check for error num after setting mask

To maintain the consistency of the code, it should be better to add the
sanity check after calling dma_set_mask_and_coherent(), like
tegra_pcm_dma_allocate() in `sound/soc/tegra/tegra_pcm.c`.

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220107020851.3095591-1-jiasheng@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c