Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4e58248 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: f_cdev: Fix memory leak with func_name"

parents 2c2e30e5 f1288259
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -826,6 +826,7 @@ static void cser_free_inst(struct usb_function_instance *fi)
	device_destroy(fcdev_classp, MKDEV(major, opts->port->minor));
	device_destroy(fcdev_classp, MKDEV(major, opts->port->minor));
	cdev_del(&opts->port->fcdev_cdev);
	cdev_del(&opts->port->fcdev_cdev);
	usb_cser_chardev_deinit();
	usb_cser_chardev_deinit();
	kfree(opts->func_name);
	kfree(opts->port);
	kfree(opts->port);
	kfree(opts);
	kfree(opts);
}
}