The interface private data is released as part of host-device removal
and must not be accessed afterwards.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
 {
        struct es2_ap_dev *es2;
        struct usb_device *udev;
+       int *cport_to_ep;
        int bulk_in;
        int i;
 
 
        usb_set_intfdata(interface, NULL);
        udev = es2->usb_dev;
+       cport_to_ep = es2->cport_to_ep;
        gb_hd_remove(es2->hd);
-       kfree(es2->cport_to_ep);
 
+       kfree(cport_to_ep);
        usb_put_dev(udev);
 }