Re: [dpdk-dev] [PATCH] vhost: fix use after free

2017-04-18 Thread Yuanhan Liu
On Tue, Apr 18, 2017 at 10:20:41AM +0200, Maxime Coquelin wrote: > > > On 04/17/2017 09:27 AM, Yuanhan Liu wrote: > >A "return" is missing on error, which could lead to a "use after free" > >issue (about var "conn"). > > > >Fixes: 65388b43f592 ("vhost: fix fd leaks for vhost-user server mode") >

Re: [dpdk-dev] [PATCH] vhost: fix use after free

2017-04-18 Thread Maxime Coquelin
On 04/17/2017 09:27 AM, Yuanhan Liu wrote: A "return" is missing on error, which could lead to a "use after free" issue (about var "conn"). Fixes: 65388b43f592 ("vhost: fix fd leaks for vhost-user server mode") Coverity issue: 143476 Reported-by: John McNamara Signed-off-by: Yuanhan Liu ---

[dpdk-dev] [PATCH] vhost: fix use after free

2017-04-17 Thread Yuanhan Liu
A "return" is missing on error, which could lead to a "use after free" issue (about var "conn"). Fixes: 65388b43f592 ("vhost: fix fd leaks for vhost-user server mode") Coverity issue: 143476 Reported-by: John McNamara Signed-off-by: Yuanhan Liu --- lib/librte_vhost/socket.c | 1 + 1 file chang

[dpdk-dev] [PATCH] vhost: fix use after free issue

2016-10-21 Thread Yuanhan Liu
On Tue, Oct 18, 2016 at 10:38:06PM +0800, Yuanhan Liu wrote: > Fix the coverity USE_AFTER_FREE issue. > > Fixes: a277c7159876 ("vhost: refactor code structure") > Coverity issue: 137884 > > Reported-by: John McNamara > Signed-off-by: Yuanhan Liu Applied to dpdk-next-virtio. --yliu > -

[dpdk-dev] [PATCH] vhost: fix use after free issue

2016-10-18 Thread Yuanhan Liu
Fix the coverity USE_AFTER_FREE issue. Fixes: a277c7159876 ("vhost: refactor code structure") Coverity issue: 137884 Reported-by: John McNamara Signed-off-by: Yuanhan Liu --- lib/librte_vhost/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_vhost/socket.c