projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ALSA] copy_ctl_value_from_user() warning fix
[firefly-linux-kernel-4.4.55.git]
/
sound
/
core
/
control_compat.c
diff --git
a/sound/core/control_compat.c
b/sound/core/control_compat.c
index 9311ca397bbc20ed62d3c5e092dd6df5ed3b1d8f..6101259ad860e1b05260f36faa42758944ebc088 100644
(file)
--- 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,
struct snd_ctl_elem_value32 __user *data32,
int *typep, int *countp)
{
- int i, type, count, size;
+ int i, type, size;
+ int uninitialized_var(count);
unsigned int indirect;
if (copy_from_user(&data->id, &data32->id, sizeof(data->id)))