[PATCH 4.14 040/199] ALSA: hda: Fix potential access overflow in beep helper