]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda/ca0132 - Avoid division by zero in dspxfr_one_seg()
authorXi Wang <xi.wang@gmail.com>
Thu, 7 Mar 2013 05:13:51 +0000 (00:13 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 7 Mar 2013 08:18:00 +0000 (09:18 +0100)
commit3bc085a12d8f9f3e45a4ac0cc24a34abd5b20657
treee4957c34b8cd36f94326724fa777e6b633f5e832
parent4c7a548a70a44269266858f65c3b5fc9c3ace057
ALSA: hda/ca0132 - Avoid division by zero in dspxfr_one_seg()

Move the zero check `hda_frame_size_words == 0' before the modulus
`buffer_size_words % hda_frame_size_words'.

Also remove the redundant null check `buffer_addx == NULL'.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c