Commit 9a30ae2d authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai

ALSA: firewire-tascam: off by one in identify_model()

Let's leave space for the NUL char otherwise the static checkers
complain that we go beyond the end of the array.

Fixes: 53b3ffee ('ALSA: firewire-tascam: change device probing processing')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9fa5cf8c
......@@ -40,7 +40,7 @@ static int identify_model(struct snd_tscm *tscm)
{
struct fw_device *fw_dev = fw_parent_device(tscm->unit);
const u32 *config_rom = fw_dev->config_rom;
char model[8];
char model[9];
unsigned int i;
u8 c;
......
Markdown is supported
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