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

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

Merge "USB: android: Fix mutex issue if ffs_close runs after ADB disable"

parents 6305df86 e0a1ca6a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -643,6 +643,8 @@ static int functionfs_ready_callback(struct ffs_data *ffs)

	config->data = ffs;
	config->opened = true;
	/* Save dev in case the adb function will get disabled */
	config->dev = dev;

	if (config->enabled && dev)
		android_enable(dev);