diff options
| -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 |
