summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/ubd_kern.c
diff options
context:
space:
mode:
authorJeff Dike2006-01-06 09:18:48 +0100
committerLinus Torvalds2006-01-06 17:33:45 +0100
commit970d6e3a3461ebc62bc3fc6d4962c936cb2ed97c (patch)
tree0af12c696e86ec294d966c704821f806b6e28883 /arch/um/drivers/ubd_kern.c
parent[PATCH] cris: kgdb: remove double_this() (diff)
downloadkernel-qcow2-linux-970d6e3a3461ebc62bc3fc6d4962c936cb2ed97c.tar.gz
kernel-qcow2-linux-970d6e3a3461ebc62bc3fc6d4962c936cb2ed97c.tar.xz
kernel-qcow2-linux-970d6e3a3461ebc62bc3fc6d4962c936cb2ed97c.zip
[PATCH] uml: use kstrdup
There were a bunch of calls to uml_strdup dating from before kstrdup was introduced. This changes those calls. It doesn't eliminate the definition since there is still a couple of calls in userspace code (which should probably call the libc strdup). Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/drivers/ubd_kern.c')
-rw-r--r--arch/um/drivers/ubd_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 93898917cbe5..1fe0dcd9f464 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -706,7 +706,7 @@ static int ubd_config(char *str)
{
int n, err;
- str = uml_strdup(str);
+ str = kstrdup(str, GFP_KERNEL);
if(str == NULL){
printk(KERN_ERR "ubd_config failed to strdup string\n");
return(1);