]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Mar 2017 09:08:19 +0000 (10:08 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Mar 2017 09:08:19 +0000 (10:08 +0100)
commitf7925d811ea192754ce0907a51cd281d9e8e2a16
tree7b17c1505dd003dd9875796ae71c7c7b6784497c
parent972bf42af2e0540797254b6ac6cecd7495749afd
ALSA: ctxfi: Fix the incorrect check of dma_set_mask() call

In the commit [9744dc7abdf4: ALSA: ctxfi: Fallback DMA mask to 32bit],
I forgot to put "!" at dam_set_mask() call check in cthw20k1.c (while
cthw20k2.c is OK).  This patch fixes that obvious bug.

(As a side note: although the original commit was completely wrong,
 it's still working for most of machines, as it sets to 32bit DMA mask
 in the end.  So the bug severity is low.)

Fixes: 9744dc7abdf4 ("ALSA: ctxfi: Fallback DMA mask to 32bit")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/cthw20k1.c