public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Dan Ben Yosef <danby-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH] infiniband-diags: ibstat fix strncpy coverity check and -l bug
Date: Wed, 12 Jun 2013 21:10:09 -0700	[thread overview]
Message-ID: <20130612211009.45e17c65026cb41e552b9aa1@intel.com> (raw)
In-Reply-To: <51B922B2.3020404-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>

On Wed, 12 Jun 2013 21:38:58 -0400
Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:

> On 6/12/2013 8:03 PM, Ira Weiny wrote:
> 
> This seems like 2 different patches to me.

Not really...

> 
> > Signed-off-by: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> > ---
> >  src/ibstat.c |    9 ++-------
> >  1 files changed, 2 insertions(+), 7 deletions(-)
> > 
> > @@ -324,12 +325,6 @@ int main(int argc, char *argv[])
> >  		return 0;
> >  	}
> >  
> > -	if (!list_only && argc) {
> 
> I think I see the issue. Rather than eliminate this if clause, I think
> the line above should be:
> 
> 	if (!list_only && argc > 1) {
> 
> so that this properly handles the case when the port option is supplied.

V2 on the way.  I think we should still get rid of that if clause but your right I broke the "port" parameter.

Ira

> 
> -- Hal
> 
> > -		if (ca_stat(argv[0], dev_port, short_format) < 0)
> > -			IBPANIC("stat of IB device '%s' failed", argv[0]);
> > -		return 0;
> > -	}
> > -
> >  	for (i = 0; i < n; i++) {
> >  		if (list_only)
> >  			printf("%s\n", names[i]);
> 


-- 
Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2013-06-13  4:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-13  0:03 [PATCH] infiniband-diags: ibstat fix strncpy coverity check and -l bug Ira Weiny
     [not found] ` <20130612170307.8eb7f51c4b68512db703615a-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-06-13  1:38   ` Hal Rosenstock
     [not found]     ` <51B922B2.3020404-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-06-13  4:10       ` Ira Weiny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-13  4:15 Ira Weiny
     [not found] ` <20130612211537.1eef2098a821426c466a83b5-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-06-13 10:58   ` Hal Rosenstock
     [not found]     ` <51B9A5CD.4010209-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2013-06-13 18:20       ` Weiny, Ira
     [not found]         ` <2807E5FD2F6FDA4886F6618EAC48510E02084650-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-06-13 18:26           ` Hal Rosenstock

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=20130612211009.45e17c65026cb41e552b9aa1@intel.com \
    --to=ira.weiny-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=danby-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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