From: Rongjun Chen Date: Sat, 27 May 2017 09:18:55 +0000 (+0800) Subject: PD#145150:add null protect X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99b34594c08f8dcc9c6ef66fbe2a110207d83cb6;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git PD#145150:add null protect Change-Id: If51bc642a3af64969bdc893f0e8c96aa381437b7 --- diff --git a/bcmdhd-usb.1.363.110.17.x/dbus_usb_linux.c b/bcmdhd-usb.1.363.110.17.x/dbus_usb_linux.c index a4b89ce..f02075d 100644 --- a/bcmdhd-usb.1.363.110.17.x/dbus_usb_linux.c +++ b/bcmdhd-usb.1.363.110.17.x/dbus_usb_linux.c @@ -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;