aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/emu10k1')
-rw-r--r--sound/pci/emu10k1/emufx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/emufx.c b/sound/pci/emu10k1/emufx.c
index c35d9e1cb6dd..354a892adb40 100644
--- a/sound/pci/emu10k1/emufx.c
+++ b/sound/pci/emu10k1/emufx.c
@@ -665,7 +665,7 @@ static unsigned int *copy_tlv(const unsigned int __user *_tlv)
665 return NULL; 665 return NULL;
666 if (data[1] >= MAX_TLV_SIZE) 666 if (data[1] >= MAX_TLV_SIZE)
667 return NULL; 667 return NULL;
668 tlv = kmalloc(data[1] * 4 + sizeof(data), GFP_KERNEL); 668 tlv = kmalloc(data[1] + sizeof(data), GFP_KERNEL);
669 if (!tlv) 669 if (!tlv)
670 return NULL; 670 return NULL;
671 memcpy(tlv, data, sizeof(data)); 671 memcpy(tlv, data, sizeof(data));