diff options
Diffstat (limited to 'arch/um/drivers/ubd_kern.c')
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 93898917cbe5..73f9652b2ee9 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) | |||
706 | { | 706 | { |
707 | int n, err; | 707 | int n, err; |
708 | 708 | ||
709 | str = uml_strdup(str); | 709 | str = kstrdup(str, GFP_KERNEL); |
710 | if(str == NULL){ | 710 | if(str == NULL){ |
711 | printk(KERN_ERR "ubd_config failed to strdup string\n"); | 711 | printk(KERN_ERR "ubd_config failed to strdup string\n"); |
712 | return(1); | 712 | return(1); |
@@ -1387,15 +1387,6 @@ int io_thread(void *arg) | |||
1387 | printk("io_thread - write failed, fd = %d, err = %d\n", | 1387 | printk("io_thread - write failed, fd = %d, err = %d\n", |
1388 | kernel_fd, -n); | 1388 | kernel_fd, -n); |
1389 | } | 1389 | } |
1390 | } | ||
1391 | 1390 | ||
1392 | /* | 1391 | return 0; |
1393 | * Overrides for Emacs so that we follow Linus's tabbing style. | 1392 | } |
1394 | * Emacs will notice this stuff at the end of the file and automatically | ||
1395 | * adjust the settings for this buffer only. This must remain at the end | ||
1396 | * of the file. | ||
1397 | * --------------------------------------------------------------------------- | ||
1398 | * Local variables: | ||
1399 | * c-file-style: "linux" | ||
1400 | * End: | ||
1401 | */ | ||