Loading drivers/usb/gadget/function/f_cdev.c +4 −2 Original line number Diff line number Diff line Loading @@ -823,8 +823,10 @@ static void cser_free_inst(struct usb_function_instance *fi) opts = container_of(fi, struct f_cdev_opts, func_inst); if (opts->port) { device_destroy(fcdev_classp, MKDEV(major, opts->port->minor)); cdev_del(&opts->port->fcdev_cdev); } usb_cser_chardev_deinit(); kfree(opts->func_name); kfree(opts->port); Loading Loading
drivers/usb/gadget/function/f_cdev.c +4 −2 Original line number Diff line number Diff line Loading @@ -823,8 +823,10 @@ static void cser_free_inst(struct usb_function_instance *fi) opts = container_of(fi, struct f_cdev_opts, func_inst); if (opts->port) { device_destroy(fcdev_classp, MKDEV(major, opts->port->minor)); cdev_del(&opts->port->fcdev_cdev); } usb_cser_chardev_deinit(); kfree(opts->func_name); kfree(opts->port); Loading