git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] create a kstrdup library function
[sfrench/cifs-2.6.git]
/
sound
/
pci
/
hda
/
patch_realtek.c
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index 9edd558d6bd34359ce03714598d0de14c384f117..bab89843d850be582cadf6ddc181a4f5d1f33f68 100644
(file)
--- a/
sound/pci/hda/patch_realtek.c
+++ b/
sound/pci/hda/patch_realtek.c
@@
-1781,7
+1781,7
@@
static int add_control(struct alc_spec *spec, int type, const char *name, unsign
knew = &spec->kctl_alloc[spec->num_kctl_used];
*knew = alc880_control_templates[type];
- knew->name =
snd_kmalloc_
strdup(name, GFP_KERNEL);
+ knew->name =
k
strdup(name, GFP_KERNEL);
if (! knew->name)
return -ENOMEM;
knew->private_value = val;