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

Commit d877ab54 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: composite: fix dereference after null check coverify warning"

parents 632198eb cb04cede
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1952,6 +1952,8 @@ unknown:
			break;

		case USB_RECIP_ENDPOINT:
			if (!cdev->config)
				break;
			endp = ((w_index & 0x80) >> 3) | (w_index & 0x0f);
			list_for_each_entry(f, &cdev->config->functions, list) {
				if (test_bit(endp, f->endpoints))