mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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: 53b3ffee78 ('ALSA: firewire-tascam: change device probing processing')
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Takashi Sakamoto <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
9fa5cf8c54
commit
9a30ae2df2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue