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

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

Merge "usb: configfs: Add null check for function config in android setup"

parents 59ec6927 df388371
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1613,7 +1613,8 @@ static int android_setup(struct usb_gadget *gadget,
	}
	spin_unlock_irqrestore(&cdev->lock, flags);
	list_for_each_entry(fi, &gi->available_func, cfs_list) {
		if (fi != NULL && fi->f != NULL && fi->f->setup != NULL) {
		if (fi != NULL && fi->f != NULL && fi->f->setup != NULL
		    && fi->f->config != NULL) {
			value = fi->f->setup(fi->f, c);
			if (value >= 0)
				break;