if (urb->status == -ESHUTDOWN)
return; /* disconnection */
#ifdef CONFIG_PM
- if (!gspca_dev->frozen)
+ if (gspca_dev->frozen)
+ return;
#endif
- PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
+ PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
goto resubmit;
}
pkt_scan = gspca_dev->sd_desc->pkt_scan;
break;
default:
#ifdef CONFIG_PM
- if (!gspca_dev->frozen)
+ if (gspca_dev->frozen)
+ return;
#endif
- PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
+ PDEBUG(D_ERR|D_PACK, "urb status: %d", urb->status);
goto resubmit;
}