linux-stable/sound
Takashi Iwai b2b9363176 ALSA: trident: Suppress gcc string warning
commit d6b340d7cb upstream.

The meddlesome gcc warns about the possible shortname string in
trident driver code:
  sound/pci/trident/trident.c: In function ‘snd_trident_probe’:
  sound/pci/trident/trident.c:126:2: warning: ‘strcat’ accessing 17 or more bytes at offsets 36 and 20 may overlap 1 byte at offset 36 [-Wrestrict]
  strcat(card->shortname, card->driver);

It happens since gcc calculates the possible string size from
card->driver, but this can't be true since we did set the string just
before that, and they are much shorter.

For shutting it up, use the exactly same string set to card->driver
for strcat() to card->shortname, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-08 13:05:06 +01:00
..
aoa ALSA: snd-aoa: add of_node_put() in error path 2018-10-03 17:01:45 -07:00
arm
atmel
core ALSA: control: Fix race between adding and removing a user element 2018-12-05 19:42:40 +01:00
drivers ALSA: aloop: Add missing cable lock to ctl API callbacks 2018-05-09 09:50:20 +02:00
firewire ALSA: oxfw: fix memory leak of private data 2018-09-29 03:07:32 -07:00
hda sound: enable interrupt after dma buffer initialization 2018-10-18 09:13:20 +02:00
i2c
isa ALSA: wss: Fix invalid snd_free_pages() at error path 2018-12-05 19:42:40 +01:00
mips
oss
parisc
pci ALSA: trident: Suppress gcc string warning 2018-12-08 13:05:06 +01:00
pcmcia ALSA: vxpocket: Fix invalid endian conversions 2018-08-22 07:47:14 +02:00
ppc powerpc updates for 4.9 2016-10-07 20:19:31 -07:00
sh
soc ASoC: intel: skylake: Add missing break in skl_tplg_get_token() 2018-11-13 11:16:55 -08:00
sparc ALSA: sparc: Fix invalid snd_free_pages() at error path 2018-12-05 19:42:40 +01:00
spi
synth
usb ALSA: usb-audio: Fix multiple definitions in AU0828_DEVICE() macro 2018-09-26 08:36:31 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c