Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2918
b: refs/heads/master
c: dfe5224
h: refs/heads/master
v: v3
  • Loading branch information
Robert Love authored and Linus Torvalds committed Jun 23, 2005
1 parent 5a7689f commit f0e180f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 543537bd922692bc978e2e356fcd8bfc9c2ee7d5
refs/heads/master: dfe52244e004f5103478966cd88351feb5c50d79
8 changes: 2 additions & 6 deletions trunk/arch/um/kernel/process_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "linux/kernel.h"
#include "linux/sched.h"
#include "linux/interrupt.h"
#include "linux/string.h"
#include "linux/mm.h"
#include "linux/slab.h"
#include "linux/utsname.h"
Expand Down Expand Up @@ -322,12 +323,7 @@ void do_uml_exitcalls(void)

char *uml_strdup(char *string)
{
char *new;

new = kmalloc(strlen(string) + 1, GFP_KERNEL);
if(new == NULL) return(NULL);
strcpy(new, string);
return(new);
return kstrdup(string, GFP_KERNEL);
}

int copy_to_user_proc(void __user *to, void *from, int size)
Expand Down

0 comments on commit f0e180f

Please sign in to comment.