summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-10-19 14:29:27 +0300
committerTakashi Iwai <tiwai@suse.de>2015-10-19 14:00:49 +0200
commit9a30ae2df29c27eca58581862928ee2c7bbdfa76 (patch)
tree254afb63accbe18c8b6a91d333dcf051ac356725 /sound
parent9fa5cf8c54940688ceb3a52eed7938b6b6585fc8 (diff)
downloadop-kernel-dev-9a30ae2df29c27eca58581862928ee2c7bbdfa76.zip
op-kernel-dev-9a30ae2df29c27eca58581862928ee2c7bbdfa76.tar.gz
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: 53b3ffee7885 ('ALSA: firewire-tascam: change device probing processing') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/firewire/tascam/tascam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/tascam/tascam.c b/sound/firewire/tascam/tascam.c
index c2f42cd..ee0bc18 100644
--- a/sound/firewire/tascam/tascam.c
+++ b/sound/firewire/tascam/tascam.c
@@ -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;
OpenPOWER on IntegriCloud