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

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

Merge "usb: hcd: Fix double free with bandwidth_mutex on cable disconnect"

parents 01eeecee ecb5febb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2524,7 +2524,7 @@ static void hcd_release(struct kref *kref)
	struct usb_hcd *hcd = container_of (kref, struct usb_hcd, kref);

	mutex_lock(&usb_port_peer_mutex);
	if (usb_hcd_is_primary_hcd(hcd))
	if (hcd->primary_hcd == hcd)
		kfree(hcd->bandwidth_mutex);
	if (hcd->shared_hcd) {
		struct usb_hcd *peer = hcd->shared_hcd;