git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebd792b
)
net/virtio: zero the whole memory zone
author
Tiwei Bie
<tiwei.bie@intel.com>
Mon, 12 Jun 2017 04:34:30 +0000
(12:34 +0800)
committer
Yuanhan Liu
<yliu@fridaylinux.org>
Fri, 16 Jun 2017 12:04:25 +0000
(14:04 +0200)
Zero the whole memory zone instead of the first few bytes.
Fixes:
c1f86306a026
("virtio: add new driver")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/virtio/virtio_ethdev.c
b/drivers/net/virtio/virtio_ethdev.c
index
4fcda80
..
371f170
100644
(file)
--- a/
drivers/net/virtio/virtio_ethdev.c
+++ b/
drivers/net/virtio/virtio_ethdev.c
@@
-424,7
+424,7
@@
virtio_init_queue(struct rte_eth_dev *dev, uint16_t vtpci_queue_idx)
}
}
- memset(mz->addr, 0,
sizeof(mz->len)
);
+ memset(mz->addr, 0,
mz->len
);
vq->vq_ring_mem = mz->phys_addr;
vq->vq_ring_virt_mem = mz->addr;