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

Commit 83e331e2 authored by Chuck Short's avatar Chuck Short Committed by David S. Miller
Browse files
parent 293b9c42
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1223,8 +1223,13 @@ static int upload_rxdata(struct via_ircc_cb *self, int iobase)

	IRDA_DEBUG(2, "%s(): len=%x\n", __FUNCTION__, len);

	if ((len - 4) < 2) {
		self->stats.rx_dropped++;
		return FALSE;
	}

	skb = dev_alloc_skb(len + 1);
	if ((skb == NULL) || ((len - 4) < 2)) {
	if (skb == NULL) {
		self->stats.rx_dropped++;
		return FALSE;
	}