Skip to content
Commit 3bc085a1 authored by Xi Wang's avatar Xi Wang Committed by Takashi Iwai
Browse files

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: default avatarXi Wang <xi.wang@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4c7a548a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment