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

Commit 6a5a6eb7 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Fix double free of device descriptor pointers"

parents 3ddd3c6e fc3b874e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -194,9 +194,13 @@ EXPORT_SYMBOL_GPL(usb_assign_descriptors);
void usb_free_all_descriptors(struct usb_function *f)
{
	usb_free_descriptors(f->fs_descriptors);
	f->fs_descriptors = NULL;
	usb_free_descriptors(f->hs_descriptors);
	f->hs_descriptors = NULL;
	usb_free_descriptors(f->ss_descriptors);
	f->ss_descriptors = NULL;
	usb_free_descriptors(f->ssp_descriptors);
	f->ssp_descriptors = NULL;
}
EXPORT_SYMBOL_GPL(usb_free_all_descriptors);