[PATCH 4.9 023/125] ALSA: hda: Fix potential access overflow in beep helper