Loading drivers/usb/gadget/function/f_cdev.c +5 −3 Original line number Diff line number Diff line /* * Copyright (c) 2011, 2013-2016, The Linux Foundation. All rights reserved. * Copyright (c) 2011, 2013-2017, The Linux Foundation. All rights reserved. * Linux Foundation chooses to take subject only to the GPLv2 license terms, * and distributes only under these terms. * Loading Loading @@ -826,8 +826,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 +5 −3 Original line number Diff line number Diff line /* * Copyright (c) 2011, 2013-2016, The Linux Foundation. All rights reserved. * Copyright (c) 2011, 2013-2017, The Linux Foundation. All rights reserved. * Linux Foundation chooses to take subject only to the GPLv2 license terms, * and distributes only under these terms. * Loading Loading @@ -826,8 +826,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