]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control led - improve the set_led_id() parser
authorJaroslav Kysela <perex@perex.cz>
Wed, 31 Mar 2021 18:07:25 +0000 (20:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Apr 2021 08:04:18 +0000 (10:04 +0200)
commitadc9905ce1296d1a93e645a8c6b0f5753e432800
treef6ffb9589a2d8bcfdc820d26c65efa5d3457ce8e
parentcdc94438867d0ea9b761b6d52e4661cc96fd39dd
ALSA: control led - improve the set_led_id() parser

It may be possible that the string pointer does not move
when parsing. Add a code which detects this state and
simply break the parser loop in this case.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210331180725.663623-1-perex@perex.cz
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control_led.c