From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH 1/4] net/virtio-user: fix return value not checked Date: Fri, 1 Jul 2016 10:15:51 +0800 Message-ID: <20160701021551.GP2831@yliu-dev.sh.intel.com> References: <1467191137-65087-1-git-send-email-jianfeng.tan@intel.com> <1467191137-65087-2-git-send-email-jianfeng.tan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, huawei.xie@intel.com, john.mcnamara@intel.com To: Jianfeng Tan Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 4D9902142 for ; Fri, 1 Jul 2016 04:15:13 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1467191137-65087-2-git-send-email-jianfeng.tan@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Jun 29, 2016 at 09:05:33AM +0000, Jianfeng Tan wrote: > - if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_CQ_NUM) == 1) > - rte_kvargs_process(kvlist, VIRTIO_USER_ARG_CQ_NUM, > - &get_integer_arg, &cq); > + if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_CQ_NUM) == 1) { > + ret = rte_kvargs_process(kvlist, VIRTIO_USER_ARG_CQ_NUM, > + &get_integer_arg, &cq); > + if (ret < 0) { > + PMD_INIT_LOG(ERR, "error to parse %s", > + VIRTIO_USER_ARG_CQ_NUM); > + goto end; > + } > + } > else if (queues > 1) Above 2 lines should be in one line. Fixed, and series applied to dpdk-next-virtio. Thanks. --yliu