Re: [PATCH v2 01/11] staging: wilc1000: replace WILC_ERRORREPORT with return

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 15, 2015 at 06:57:37AM -0700, Greg Kroah-Hartman wrote:
> On Tue, Sep 15, 2015 at 01:07:06PM +0300, Mike Rapoport wrote:
> >  		if ((pstrNetworkInfo == NULL)
> >  		    || (pstrWFIDrv->strWILC_UsrScanReq.pfUserScanResult == NULL)) {
> > -			WILC_ERRORREPORT(s32Error, WILC_INVALID_ARGUMENT);
> > +			return WILC_INVALID_ARGUMENT;
> 
> Are you sure about that?  Because:
> 
> >  		}
> >  
> >  		/* check whether this network is discovered before */
> > @@ -2365,12 +2365,6 @@ static s32 Handle_RcvdNtwrkInfo(tstrWILC_WFIDrv *drvHandler, tstrRcvdNetworkInfo
> >  		}
> >  	}
> >  
> > -
> > -	WILC_CATCH(s32Error)
> > -	{
> > -
> > -	}
> > -
> >  done:
> >  	/* Deallocate pstrRcvdNetworkInfo->pu8Buffer which was prevoisuly allocated by the sending thread */
> >  	if (pstrRcvdNetworkInfo->pu8Buffer != NULL) {
> 
> You do a bunch of work here, if that error occurs.
> 
> You just changed the logic of this function :(
> 
> Please be much more careful when cleaning stuff up like error paths.  I
> suggest you redo this whole series, possibly looking at the other set of
> patches that was recently posted to do much this same thing, to verify
> that you really are not breaking anything.

I'll be offline for the next few days, so I'll be able to thoroughfully
review and resend the series only then, unless the other set of patches
will be merged by then.

 
> thanks,
> 
> greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux