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

Commit 449f14f0 authored by Anton Protopopov's avatar Anton Protopopov Committed by David S. Miller
Browse files

net: caif: fix erroneous return value



The cfrfml_receive() function might return positive value EPROTO

Signed-off-by: default avatarAnton Protopopov <a.s.protopopov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 48bb230e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ static int cfrfml_receive(struct cflayer *layr, struct cfpkt *pkt)
		tmppkt = NULL;

		/* Verify that length is correct */
		err = EPROTO;
		err = -EPROTO;
		if (rfml->pdu_size != cfpkt_getlen(pkt) - RFM_HEAD_SIZE + 1)
			goto out;
	}