From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 5503411C5 for ; Wed, 6 Apr 2016 12:19:43 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id v188so17487822wme.1 for ; Wed, 06 Apr 2016 03:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=uk5EP3GrLoY0j/6WMGTbYzMVVSMahbbTxIXM4dKQs+A=; b=dnkVm4WtxggJXA4iBZ6VDNWLSqUbv7/Ef40KnAV+CnQCgjL3min/rXmFjd3epODzp9 2z2GnlURYLMoua9tumrk7kPZ0CFnTLc9ePKyo66o/LeIPqQsj7yNJMeDAt1ydi7I+Kv+ 2G/NyHnznNMX7/uwj7f0rEW1fYsEbw6PBivVsGmH/1h8bn5eUfvlKFZcA2KMwC+E8xxR hg3FTnoZLiw/PN3QlDgKAB16La/8lwdHUmPtjVYZ7e9FNSqQqPvW8NqRte7JlKSYVzZR 97m4ihDg6PW0SfxShWRb7zLBXVViaNnQTiZ8F05UddeWG/VTzoCtphWXOy9X2SanmoF8 xy+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=uk5EP3GrLoY0j/6WMGTbYzMVVSMahbbTxIXM4dKQs+A=; b=ePDwvekm4zz8PvKpnQOYoWT3xyp9at0kBFnziYXQPfIy+QOvS8Y3IVvxuP0QD6NbhN MwBNlJ0HNDTEKNdwnyDJI2GtKQfXkrrVAG82gO+TLLzCknMZ8O6OvnwCrM+yF2E9doxx UsnxXw0SKS+tWeETfgapbZvEINfkOYApmZK9xwx4q0c3HwZezU+0WXjYnVWoWW0X2pxE tCjJ1pm6H/MXC7IbtKdDFu1PWsCzViTppFhGJmvA2S++8LHElqV2xxFt1ktJPRVkPxei X/A+8QZFrY+erP4pwBcRm/Kll3uSuh6XVI/qws86Oq61hFWsGjqq/JKYHtNDrM5CnNjJ 6j+g== X-Gm-Message-State: AD7BkJJh7vhXfcMW8zve1TVOMHBWdcragA0oK/+rCToTpLeZz9gxF+KBWr8C2cci/+/Nquq2 X-Received: by 10.194.191.199 with SMTP id ha7mr29914655wjc.128.1459937983170; Wed, 06 Apr 2016 03:19:43 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id jf6sm2490600wjb.2.2016.04.06.03.19.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 06 Apr 2016 03:19:42 -0700 (PDT) From: Thomas Monjalon To: Yuanhan Liu Cc: dev@dpdk.org, huawei.xie@intel.com Date: Wed, 06 Apr 2016 12:18:04 +0200 Message-ID: <1648720.2F4xWX4cp3@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1459836043-18863-1-git-send-email-yuanhan.liu@linux.intel.com> References: <1459836043-18863-1-git-send-email-yuanhan.liu@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] vhost: fix coverity defect X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2016 10:19:43 -0000 > Fix following coverity defect: > > 291 void > 292 vhost_destroy_device(struct vhost_device_ctx ctx) > 293 { > 294 struct virtio_net *dev = get_device(ctx); > 295 > >>> CID 124565: Null pointer dereferences (NULL_RETURNS) > >>> Dereferencing a null pointer "dev". > > Fixes: 45ca9c6f7bc6 ("vhost: get rid of linked list for devices") > > Reported-by: John McNamara > Signed-off-by: Yuanhan Liu Applied, thanks