vhost: fix use after free
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 18 Oct 2016 14:38:06 +0000 (22:38 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 26 Oct 2016 11:39:09 +0000 (13:39 +0200)
commit54524e0391deabbb55e478d4a27d8983ff0b353a
tree49f32fee4019fe2ca629dd870c5e2061d9be01e0
parentf2f5bc8f30a1c38ad0e9ca19175691a608376441
vhost: fix use after free

Fix the coverity USE_AFTER_FREE issue.

Coverity issue: 137884
Fixes: a277c7159876 ("vhost: refactor code structure")

Reported-by: John McNamara <john.mcnamara@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/socket.c