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/bnxt: fix null dereference in session cleanup
[dpdk.git]
/
lib
/
vhost
/
iotlb.c
diff --git
a/lib/vhost/iotlb.c
b/lib/vhost/iotlb.c
index
b24202a
..
5a5ba8b
100644
(file)
--- a/
lib/vhost/iotlb.c
+++ b/
lib/vhost/iotlb.c
@@
-324,8
+324,7
@@
vhost_user_iotlb_init(struct virtio_net *dev, int vq_index)
/* If already created, free it and recreate */
vq->iotlb_pool = rte_mempool_lookup(pool_name);
/* If already created, free it and recreate */
vq->iotlb_pool = rte_mempool_lookup(pool_name);
- if (vq->iotlb_pool)
- rte_mempool_free(vq->iotlb_pool);
+ rte_mempool_free(vq->iotlb_pool);
vq->iotlb_pool = rte_mempool_create(pool_name,
IOTLB_CACHE_SIZE, sizeof(struct vhost_iotlb_entry), 0,
vq->iotlb_pool = rte_mempool_create(pool_name,
IOTLB_CACHE_SIZE, sizeof(struct vhost_iotlb_entry), 0,