Commit 5050b0921a0f838314b1b9c4d7c16d5c8ed8c1fc
Committed by
Jaroslav Kysela
1 parent
6b587ef9a1
[ALSA] copy_ctl_value_from_user() warning fix
sound/core/control_compat.c: In function 'copy_ctl_value_from_user': sound/core/control_compat.c:222: warning: 'count' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
sound/core/control_compat.c
... | ... | @@ -219,7 +219,8 @@ |
219 | 219 | struct snd_ctl_elem_value32 __user *data32, |
220 | 220 | int *typep, int *countp) |
221 | 221 | { |
222 | - int i, type, count, size; | |
222 | + int i, type, size; | |
223 | + int uninitialized_var(count); | |
223 | 224 | unsigned int indirect; |
224 | 225 | |
225 | 226 | if (copy_from_user(&data->id, &data32->id, sizeof(data->id))) |