PD#145150:add null protect
authorRongjun Chen <rongjun.chen@amlogic.com>
Sat, 27 May 2017 09:18:55 +0000 (17:18 +0800)
committerSandy Luo <sandy.luo@amlogic.com>
Sat, 27 May 2017 09:18:55 +0000 (17:18 +0800)
Change-Id: If51bc642a3af64969bdc893f0e8c96aa381437b7

bcmdhd-usb.1.363.110.17.x/dbus_usb_linux.c

index a4b89ce79f0ce66cdc5bafbd7b9a2d6c19b09505..f02075da65babe1b8df91b86c5bde80960577905 100644 (file)
@@ -1148,7 +1148,8 @@ dbus_usbos_cancel_all_urbs(usbos_info_t *usbos_info)
        int rxposted, txposted;
 
        DBUSTRACE(("%s: unlink all URBs\n", __FUNCTION__));
-
+       if (usbos_info == NULL)
+               return ;
 #ifdef USBOS_TX_THREAD
        usbos_info->ctl_state = USBOS_REQUEST_STATE_UNSCHEDULED;