vhost: fix double-free with zero-copy
authorPatrick Fu <patrick.fu@intel.com>
Tue, 21 Jul 2020 12:10:57 +0000 (12:10 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Jul 2020 14:55:30 +0000 (16:55 +0200)
commita608436b635460c1be0d0d561838aa197cf32c87
tree9085e6bc395f28e03aec0fae73e0c27c6b42b791
parent47958f7cbf74dc59a22a7aec2b65cd721679ca52
vhost: fix double-free with zero-copy

zmbufs should be set to NULL when getting freed to avoid double free on
the same buffer pointer

Fixes: b0a985d1f340 ("vhost: add dequeue zero copy")
Cc: stable@dpdk.org
Signed-off-by: Patrick Fu <patrick.fu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c