]> git.baikalelectronics.ru Git - kernel.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)
commitec40b71f7df19ec778fcffee02b411a9eeb0386a
treee4957c34b8cd36f94326724fa777e6b633f5e832
parent16dcef8489e8053674d729abc00ccb14fcb42639
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