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

Commit 0f2c0b93 authored by Vamsi Krishna's avatar Vamsi Krishna
Browse files

ks_bridge: Ignore completion error when payload is non zero



Ignore the completion error and deliver the packet to client
if payload is non zero. This will help avoid missing data packets
on clients.

Change-Id: I27883b40048d9f3c5045f3af50f117adb140cba3
Signed-off-by: default avatarVamsi Krishna <vskrishn@codeaurora.org>
parent ec4b001e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -535,9 +535,12 @@ static void ksb_rx_cb(struct urb *urb)
				&& urb->status != -EPROTO)
			pr_err_ratelimited("%s: urb failed with err:%d",
					ksb->id_info.name, urb->status);

		if (!urb->actual_length) {
			ksb_free_data_pkt(pkt);
			goto done;
		}
	}

	usb_mark_last_busy(ksb->udev);