diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-06-18 13:32:35 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-07-02 12:05:54 +0200 |
commit | 7ee7663da07717a1b31ce60d2ebf12d2058ee975 (patch) | |
tree | 15f84c4292b4c94a33bd595a84714200421ffffb /sound/pci | |
parent | 669982364299f6f22bea4324f0f7ee8f8a361b87 (diff) | |
download | lwn-7ee7663da07717a1b31ce60d2ebf12d2058ee975.tar.gz lwn-7ee7663da07717a1b31ce60d2ebf12d2058ee975.zip |
ALSA: control: Make sure that id->index does not overflow
commit 883a1d49f0d77d30012f114b2e19fc141beb3e8e upstream.
The ALSA control code expects that the range of assigned indices to a control is
continuous and does not overflow. Currently there are no checks to enforce this.
If a control with a overflowing index range is created that control becomes
effectively inaccessible and unremovable since snd_ctl_find_id() will not be
able to find it. This patch adds a check that makes sure that controls with a
overflowing index range can not be created.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions