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

Commit be57574a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: spcom: validate rx_buf in spcom_rx before usage"

parents dcdd543f 34b95595
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -898,12 +898,12 @@ static int spcom_rx(struct spcom_channel *ch,
		goto exit_err;
	}

copy_buf:
	if (!ch->glink_rx_buf) {
		pr_err("invalid glink_rx_buf.\n");
		goto exit_err;
	}

copy_buf:
	/* Copy from glink buffer to spcom buffer */
	size = min_t(int, ch->actual_rx_size, size);
	memcpy(buf, ch->glink_rx_buf, size);