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

Commit 979a3c13 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: midi: Increase IN endpoint buffer allocation"

parents fe941054 e240020f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -537,13 +537,14 @@ static void f_midi_transmit_byte(struct usb_request *req,
static void f_midi_transmit(struct f_midi *midi, struct usb_request *req)
{
	struct usb_ep *ep = midi->in_ep;
	size_t extra_buf_alloc = midi->gadget->extra_buf_alloc;
	int i;

	if (!ep)
		return;

	if (!req)
		req = midi_alloc_ep_req(ep, midi->buflen);
		req = midi_alloc_ep_req(ep, midi->buflen + extra_buf_alloc);

	if (!req) {
		ERROR(midi, "gmidi_transmit: midi_alloc_ep_request failed\n");