]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control_led - fix the stack usage (control element ops)
authorJaroslav Kysela <perex@perex.cz>
Wed, 14 Apr 2021 10:58:58 +0000 (12:58 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Apr 2021 12:23:05 +0000 (14:23 +0200)
commit3f1bfef992aa29578de5d792a0de2a05cdd8a52d
treebe619c0fe3ce0628e469eb5a3e3d33b971467b3e
parentf90bfad79edf7720f00be15c65f666c719574295
ALSA: control_led - fix the stack usage (control element ops)

It's a bad idea to allocate big structures on the stack.
Mark the variables as static and add a note for the locking.

Fixes: 406e467c087d ("ALSA: control - add generic LED trigger module as the new control layer")
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210414105858.1937710-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control_led.c