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)
commit62327ebbdf0097cda25579522424b350c65422a4
treef6ffb9589a2d8bcfdc820d26c65efa5d3457ce8e
parent016c20506d5c30151196ab28c694ab10bc3604e6
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