diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-15 18:07:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-03-15 18:07:32 -0400 |
commit | 6c83d0d5eb62846b8591884e246ab67d70b651ef (patch) | |
tree | 320a837cb7384d01326001956f655b812fc6cd5d /arch/um | |
parent | 636deed6c0bc137a7c4f4a97ae1fcf0ad75323da (diff) | |
parent | aea05eb56e47046de1e5b508d40931dca969f1e5 (diff) |
Merge branch 'for-linus-5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
Pull UML updates from Richard Weinberger:
"Bugfix for the UML block device driver"
* 'for-linus-5.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
um: Fix for a possible OOPS in ubd initialization
um: Remove duplicated include from vector_user.c
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/ubd_kern.c | 6 | ||||
-rw-r--r-- | arch/um/drivers/vector_user.c | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index a4a41421c5e2..aca09be2373e 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
@@ -938,7 +938,7 @@ static int ubd_add(int n, char **error_out) | |||
938 | ubd_dev->queue = blk_mq_init_queue(&ubd_dev->tag_set); | 938 | ubd_dev->queue = blk_mq_init_queue(&ubd_dev->tag_set); |
939 | if (IS_ERR(ubd_dev->queue)) { | 939 | if (IS_ERR(ubd_dev->queue)) { |
940 | err = PTR_ERR(ubd_dev->queue); | 940 | err = PTR_ERR(ubd_dev->queue); |
941 | goto out_cleanup; | 941 | goto out_cleanup_tags; |
942 | } | 942 | } |
943 | 943 | ||
944 | ubd_dev->queue->queuedata = ubd_dev; | 944 | ubd_dev->queue->queuedata = ubd_dev; |
@@ -968,8 +968,8 @@ out: | |||
968 | 968 | ||
969 | out_cleanup_tags: | 969 | out_cleanup_tags: |
970 | blk_mq_free_tag_set(&ubd_dev->tag_set); | 970 | blk_mq_free_tag_set(&ubd_dev->tag_set); |
971 | out_cleanup: | 971 | if (!(IS_ERR(ubd_dev->queue))) |
972 | blk_cleanup_queue(ubd_dev->queue); | 972 | blk_cleanup_queue(ubd_dev->queue); |
973 | goto out; | 973 | goto out; |
974 | } | 974 | } |
975 | 975 | ||
diff --git a/arch/um/drivers/vector_user.c b/arch/um/drivers/vector_user.c index d2c17dd74620..b3f7b3ca896d 100644 --- a/arch/um/drivers/vector_user.c +++ b/arch/um/drivers/vector_user.c | |||
@@ -16,14 +16,12 @@ | |||
16 | #include <sys/types.h> | 16 | #include <sys/types.h> |
17 | #include <sys/stat.h> | 17 | #include <sys/stat.h> |
18 | #include <fcntl.h> | 18 | #include <fcntl.h> |
19 | #include <sys/types.h> | ||
20 | #include <sys/socket.h> | 19 | #include <sys/socket.h> |
21 | #include <net/ethernet.h> | 20 | #include <net/ethernet.h> |
22 | #include <netinet/ip.h> | 21 | #include <netinet/ip.h> |
23 | #include <netinet/ether.h> | 22 | #include <netinet/ether.h> |
24 | #include <linux/if_ether.h> | 23 | #include <linux/if_ether.h> |
25 | #include <linux/if_packet.h> | 24 | #include <linux/if_packet.h> |
26 | #include <sys/socket.h> | ||
27 | #include <sys/wait.h> | 25 | #include <sys/wait.h> |
28 | #include <sys/uio.h> | 26 | #include <sys/uio.h> |
29 | #include <linux/virtio_net.h> | 27 | #include <linux/virtio_net.h> |
@@ -31,7 +29,6 @@ | |||
31 | #include <stdlib.h> | 29 | #include <stdlib.h> |
32 | #include <os.h> | 30 | #include <os.h> |
33 | #include <um_malloc.h> | 31 | #include <um_malloc.h> |
34 | #include <sys/uio.h> | ||
35 | #include "vector_user.h" | 32 | #include "vector_user.h" |
36 | 33 | ||
37 | #define ID_GRE 0 | 34 | #define ID_GRE 0 |