[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>
This commit is contained in:
committed by
Linus Torvalds
parent
118c1f27b8
commit
970d6e3a34
@@ -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);
|
||||
|
Reference in New Issue
Block a user