Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34917
b: refs/heads/master
c: 18c1c3f
h: refs/heads/master
i:
  34915: e106055
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Sep 23, 2006
1 parent 5b0b5e2 commit e909f19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86148e84c218e49b54521e8dae7bb78eb66c4281
refs/heads/master: 18c1c3f694105ab2a6f43e054e23f9a751b2f869
2 changes: 2 additions & 0 deletions trunk/sound/core/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,8 @@ static int snd_ctl_elem_user_tlv(struct snd_kcontrol *kcontrol,
ue->tlv_data = new_data;
ue->tlv_data_size = size;
} else {
if (! ue->tlv_data_size || ! ue->tlv_data)
return -ENXIO;
if (size < ue->tlv_data_size)
return -ENOSPC;
if (copy_to_user(tlv, ue->tlv_data, ue->tlv_data_size))
Expand Down

0 comments on commit e909f19

Please sign in to comment.