[PATCH 5.4 077/232] ALSA: hda: Fix potential access overflow in beep helper