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

Commit 28cd9ecf 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: NULL check before accessing cdev"

parents 91c75905 32709f76
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -535,10 +535,11 @@ static int functionfs_ready_callback(struct ffs_data *ffs)
	struct functionfs_config *config = ffs_function.config;
	int ret = 0;


	if (dev) {
		ret = functionfs_bind(ffs, dev->cdev);
		if (ret)
			return ret;
	}

	/* dev is null in case ADB is not in the composition */
	if (dev)