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

Commit b6912518 authored by Arun Kumar Neelakantam's avatar Arun Kumar Neelakantam
Browse files

net: ipc_router: Remove header length check



V1 header length check for read_avail cause read failures if packet
comes with V2 header and payload less than 16bytes.

Remove the V1 header length check to read small packets once it receives.

CRs-Fixed: 2279076
Change-Id: I7daf5c150e501d209057d6f2af998f685f5cd25d
Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
parent 7af3eef5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -255,7 +255,7 @@ static void xprt_read_data(struct work_struct *work)
	hdr_len = sizeof(struct rr_header_v1);
	while (1) {
		rx_avail = fifo_rx_avail(&xprtp->rx_pipe);
		if (!rx_avail || (rx_avail < hdr_len))
		if (!rx_avail)
			break;

		fifo_rx_peak(&xprtp->rx_pipe, &hdr, 0, hdr_len);