git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/virtio-user: fix overflow
[dpdk.git]
/
drivers
/
net
/
virtio
/
virtio_user
/
virtio_user_dev.h
diff --git
a/drivers/net/virtio/virtio_user/virtio_user_dev.h
b/drivers/net/virtio/virtio_user/virtio_user_dev.h
index
0d39f40
..
bd2e4ca
100644
(file)
--- a/
drivers/net/virtio/virtio_user/virtio_user_dev.h
+++ b/
drivers/net/virtio/virtio_user/virtio_user_dev.h
@@
-49,8
+49,8
@@
struct virtio_user_dev {
int *tapfds;
/* for both vhost_user and vhost_kernel */
int *tapfds;
/* for both vhost_user and vhost_kernel */
- int callfds[VIRTIO_MAX_VIRTQUEUES
* 2 + 1
];
- int kickfds[VIRTIO_MAX_VIRTQUEUES
* 2 + 1
];
+ int callfds[VIRTIO_MAX_VIRTQUEUES];
+ int kickfds[VIRTIO_MAX_VIRTQUEUES];
int mac_specified;
uint32_t max_queue_pairs;
uint32_t queue_pairs;
int mac_specified;
uint32_t max_queue_pairs;
uint32_t queue_pairs;
@@
-62,7
+62,7
@@
struct virtio_user_dev {
uint8_t status;
uint8_t mac_addr[ETHER_ADDR_LEN];
char path[PATH_MAX];
uint8_t status;
uint8_t mac_addr[ETHER_ADDR_LEN];
char path[PATH_MAX];
- struct vring vrings[VIRTIO_MAX_VIRTQUEUES
* 2 + 1
];
+ struct vring vrings[VIRTIO_MAX_VIRTQUEUES];
struct virtio_user_backend_ops *ops;
};
struct virtio_user_backend_ops *ops;
};