diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 21:49:02 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 21:49:02 -0400 |
commit | 31003e3a9df675f1ac85d7bcf8e5a5d622576375 (patch) | |
tree | 6b08171deca1bf3cdcd6968ce0859e505048c73a /arch/um/drivers | |
parent | 1ee07ef6b5db7235b133ee257a3adf507697e6b3 (diff) | |
parent | 5f786595a291092d20fafe10c5a30378971a8cc3 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
Pull UML update from Richard Weinberger:
"Besides of fixes this contains also support for CONFIG_STACKTRACE by
Daniel Walter"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
um: net: Eliminate NULL test after alloc_bootmem
um: Add support for CONFIG_STACKTRACE
um: ubd: Fix for processes stuck in D state forever
um: delete unnecessary bootmem struct page array
um: remove csum_partial_copy_generic_i386 to clean up exception table
Diffstat (limited to 'arch/um/drivers')
-rw-r--r-- | arch/um/drivers/net_kern.c | 4 | ||||
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index 7d26d9c0b2fb..f70dd540655d 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
@@ -659,10 +659,6 @@ static int __init eth_setup(char *str) | |||
659 | } | 659 | } |
660 | 660 | ||
661 | new = alloc_bootmem(sizeof(*new)); | 661 | new = alloc_bootmem(sizeof(*new)); |
662 | if (new == NULL) { | ||
663 | printk(KERN_ERR "eth_init : alloc_bootmem failed\n"); | ||
664 | return 1; | ||
665 | } | ||
666 | 662 | ||
667 | INIT_LIST_HEAD(&new->list); | 663 | INIT_LIST_HEAD(&new->list); |
668 | new->index = n; | 664 | new->index = n; |
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 3716e6952554..e8ab93c3e638 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
@@ -1277,7 +1277,7 @@ static void do_ubd_request(struct request_queue *q) | |||
1277 | 1277 | ||
1278 | while(1){ | 1278 | while(1){ |
1279 | struct ubd *dev = q->queuedata; | 1279 | struct ubd *dev = q->queuedata; |
1280 | if(dev->end_sg == 0){ | 1280 | if(dev->request == NULL){ |
1281 | struct request *req = blk_fetch_request(q); | 1281 | struct request *req = blk_fetch_request(q); |
1282 | if(req == NULL) | 1282 | if(req == NULL) |
1283 | return; | 1283 | return; |
@@ -1299,7 +1299,8 @@ static void do_ubd_request(struct request_queue *q) | |||
1299 | return; | 1299 | return; |
1300 | } | 1300 | } |
1301 | prepare_flush_request(req, io_req); | 1301 | prepare_flush_request(req, io_req); |
1302 | submit_request(io_req, dev); | 1302 | if (submit_request(io_req, dev) == false) |
1303 | return; | ||
1303 | } | 1304 | } |
1304 | 1305 | ||
1305 | while(dev->start_sg < dev->end_sg){ | 1306 | while(dev->start_sg < dev->end_sg){ |