aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/control_compat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/control_compat.c b/sound/core/control_compat.c
index 9311ca397bbc..6101259ad860 100644
--- a/sound/core/control_compat.c
+++ b/sound/core/control_compat.c
@@ -219,7 +219,8 @@ static int copy_ctl_value_from_user(struct snd_card *card,
219 struct snd_ctl_elem_value32 __user *data32, 219 struct snd_ctl_elem_value32 __user *data32,
220 int *typep, int *countp) 220 int *typep, int *countp)
221{ 221{
222 int i, type, count, size; 222 int i, type, size;
223 int uninitialized_var(count);
223 unsigned int indirect; 224 unsigned int indirect;
224 225
225 if (copy_from_user(&data->id, &data32->id, sizeof(data->id))) 226 if (copy_from_user(&data->id, &data32->id, sizeof(data->id)))