2 Jan 2011 16:53
Re: [PATCH] Further timeout paramater verification (Was: [PATCH] infiniband-diags: Verify timeout value specified to diagnostics)
On 11:47 Wed 22 Dec , Ira Weiny wrote: > On Mon, 20 Dec 2010 13:57:36 -0800 > Jay Fenlason <fenlason@...> wrote: > > > Sorry if you get this more than once, I seem to have outgoing mail misconfiguration here. > > > > On Wed, Dec 15, 2010 at 11:47:09AM -0800, Ira Weiny wrote: > > > > > > Verify timeout value specified to diagnostics > > > > > > > > > Signed-off-by: Ira Weiny <weiny2@...> > > > --- > > > infiniband-diags/src/ibdiag_common.c | 10 +++++++--- > > > 1 files changed, 7 insertions(+), 3 deletions(-) > > > > > > diff --git a/infiniband-diags/src/ibdiag_common.c b/infiniband-diags/src/ibdia > > +g_common.c > > > index 99861f1..8ccf2fc 100644 > > > --- a/infiniband-diags/src/ibdiag_common.c > > > +++ b/infiniband-diags/src/ibdiag_common.c > > > <at> <at> -175,9 +175,13 <at> <at> static int process_opt(int ch, char *optarg) > > > ibd_dest_type = IB_DEST_GUID; > > > break; > > > case 't': > > > - val = strtoul(optarg, 0, 0); > > > - madrpc_set_timeout(val); > > > - ibd_timeout = val; > > > + val = (int)strtol(optarg, NULL, 0); > > > + if (val > 0) {(Continue reading)
RSS Feed