On Thu, Oct 11, 2012 at 09:02:04PM -0400, Kevin McKinney wrote:
> @@ -193,7 +193,7 @@ VOID Bcm_kill_all_URBs(PS_INTERFACE_ADAPTER psIntfAdapter)
>        */
>  
>       /* Cancel submitted Interrupt-URB's */
> -     if (psIntfAdapter->psInterruptUrb != NULL) {
> +     if (!psIntfAdapter->psInterruptUrb) {

This test is reversed.  Btw, if you run Smatch on your code it would
have caught this.

>               if (psIntfAdapter->psInterruptUrb->status == -EINPROGRESS)
>                       usb_kill_urb(psIntfAdapter->psInterruptUrb);
>       }

regards,
dan carpenter

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to