diff options
Diffstat (limited to 'arch/um/drivers/net_kern.c')
-rw-r--r-- | arch/um/drivers/net_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 84c73a300acb..29785f643021 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
@@ -586,7 +586,7 @@ static int net_config(char *str) | |||
586 | err = eth_parse(str, &n, &str); | 586 | err = eth_parse(str, &n, &str); |
587 | if(err) return(err); | 587 | if(err) return(err); |
588 | 588 | ||
589 | str = uml_strdup(str); | 589 | str = kstrdup(str, GFP_KERNEL); |
590 | if(str == NULL){ | 590 | if(str == NULL){ |
591 | printk(KERN_ERR "net_config failed to strdup string\n"); | 591 | printk(KERN_ERR "net_config failed to strdup string\n"); |
592 | return(-1); | 592 | return(-1); |