DPDK patches and discussions
 help / color / mirror / Atom feed
From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Jin Yu <jin.yu@intel.com>, Tiwei Bie <tiwei.bie@intel.com>,
	Zhihong Wang <zhihong.wang@intel.com>
Cc: dev@dpdk.org, stable@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2] vhost-blk: fix the unused return value
Date: Thu, 9 Jan 2020 16:51:54 +0100	[thread overview]
Message-ID: <1aee5ba2-5293-fab4-99c0-50b3ee118ed5@redhat.com> (raw)
In-Reply-To: <100a3288-aefe-cb07-8756-50a747db521a@redhat.com>



On 11/27/19 1:57 PM, Maxime Coquelin wrote:
> 
> 
> On 11/27/19 1:16 PM, Jin Yu wrote:
>> add the assert to handle error.
>>
>> Coverity issue: 350592
>> Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Jin Yu <jin.yu@intel.com>
>> ---
>> v2 - add the error hander
>> ---
>>  examples/vhost_blk/vhost_blk.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/examples/vhost_blk/vhost_blk.c b/examples/vhost_blk/vhost_blk.c
>> index 3182a488b..e1036bf3a 100644
>> --- a/examples/vhost_blk/vhost_blk.c
>> +++ b/examples/vhost_blk/vhost_blk.c
>> @@ -856,6 +856,7 @@ new_device(int vid)
>>  				ctrlr->bdev->vid, i,
>>  				&blk_vq->last_avail_idx,
>>  				&blk_vq->last_used_idx);
>> +			assert(ret == 0);
>>  
>>  			blk_vq->avail_wrap_counter = blk_vq->last_avail_idx &
>>  				(1 << 15);
>>
> 
> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
> 
> Thanks,
> Maxime
> 

Applied to dpdk-next-virtio/master.

Thanks,
Maxime


      reply	other threads:[~2020-01-09 15:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 15:37 [dpdk-dev] [PATCH] vhost-blk: delete " Jin Yu
2019-11-26 14:58 ` Maxime Coquelin
2019-11-27 12:16 ` [dpdk-dev] [PATCH v2] vhost-blk: fix " Jin Yu
2019-11-27 12:57   ` Maxime Coquelin
2020-01-09 15:51     ` Maxime Coquelin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1aee5ba2-5293-fab4-99c0-50b3ee118ed5@redhat.com \
    --to=maxime.coquelin@redhat.com \
    --cc=dev@dpdk.org \
    --cc=jin.yu@intel.com \
    --cc=stable@dpdk.org \
    --cc=tiwei.bie@intel.com \
    --cc=zhihong.wang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).