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

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

Merge "usb: gadget: f_fs: Update driver to handle compat id descriptors"

parents bd5a601d 52eeb774
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2199,11 +2199,17 @@ static int __ffs_data_do_os_desc(enum ffs_os_desc_type type,

		if (len < sizeof(*d) ||
		    d->bFirstInterfaceNumber >= ffs->interfaces_count ||
		    d->Reserved1)
		    d->Reserved1 != 1) {
			pr_err("%s(): Invalid os_desct_ext_compat\n",
							__func__);
			return -EINVAL;
		}
		for (i = 0; i < ARRAY_SIZE(d->Reserved2); ++i)
			if (d->Reserved2[i])
			if (d->Reserved2[i]) {
				pr_err("%s(): Invalid Reserved2 of ext_compat\n",
							__func__);
				return -EINVAL;
			}

		length = sizeof(struct usb_ext_compat_desc);
	}