From: Maxime Coquelin Subject: Re: [PATCH] vhost: fix use after free Date: Tue, 18 Apr 2017 10:20:41 +0200 Message-ID: References: <1492414024-18413-1-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Yuanhan Liu , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 49519DE0 for ; Tue, 18 Apr 2017 10:20:45 +0200 (CEST) In-Reply-To: <1492414024-18413-1-git-send-email-yuanhan.liu@linux.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > --- > lib/librte_vhost/socket.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Maxime Coquelin Thanks! Maxime