projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f02fe86
)
ALSA: ak4xx-adda: info leak in ak4xxx_capture_source_info()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 26 Jun 2013 07:52:20 +0000
(10:52 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Wed, 26 Jun 2013 08:35:55 +0000
(10:35 +0200)
"idx" is controled by the user and can be a negative offset into the
input_names[] array.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/i2c/other/ak4xxx-adda.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/i2c/other/ak4xxx-adda.c
b/sound/i2c/other/ak4xxx-adda.c
index cef813d23641afcd39b56a57c5fc8058cb99bfb0..ed726d1569e8d3e9dffd49ee2af31fc79b7b7bc8 100644
(file)
--- a/
sound/i2c/other/ak4xxx-adda.c
+++ b/
sound/i2c/other/ak4xxx-adda.c
@@
-571,7
+571,7
@@
static int ak4xxx_capture_source_info(struct snd_kcontrol *kcontrol,
struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol);
int mixer_ch = AK_GET_SHIFT(kcontrol->private_value);
const char **input_names;
-
int
num_names, idx;
+
unsigned int
num_names, idx;
num_names = ak4xxx_capture_num_inputs(ak, mixer_ch);
if (!num_names)