Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274115
b: refs/heads/master
c: 447c6f9
h: refs/heads/master
i:
  274113: 54284dc
  274111: 6840c76
v: v3
  • Loading branch information
Olof Johansson authored and Takashi Iwai committed Nov 6, 2011
1 parent cfda0b9 commit 927e413
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 862a6244eb9f9f5123fe819454fcfcae0ee1f2f9
refs/heads/master: 447c6f93aba42e6889be55a614d4dddc25f17863
4 changes: 2 additions & 2 deletions trunk/sound/core/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,12 +1081,12 @@ static int snd_ctl_elem_init_enum_names(struct user_element *ue)
char *names, *p;
size_t buf_len, name_len;
unsigned int i;
const uintptr_t user_ptrval = ue->info.value.enumerated.names_ptr;

if (ue->info.value.enumerated.names_length > 64 * 1024)
return -EINVAL;

names = memdup_user(
(const void __user *)ue->info.value.enumerated.names_ptr,
names = memdup_user((const void __user *)user_ptrval,
ue->info.value.enumerated.names_length);
if (IS_ERR(names))
return PTR_ERR(names);
Expand Down

0 comments on commit 927e413

Please sign in to comment.