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

Commit c32db741 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: glink_smem_native_xprt: RPM fifo corrections"

parents e4800bce b43f4320
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1989,7 +1989,7 @@ static int glink_rpm_native_probe(struct platform_device *pdev)
		}
		++tocp;
		einfo->tx_ch_desc = msgram + *tocp;
		einfo->tx_fifo = einfo->tx_ch_desc + sizeof(*einfo->tx_ch_desc);
		einfo->tx_fifo = einfo->tx_ch_desc + 1;
		if ((uintptr_t)einfo->tx_fifo >
				(uintptr_t)(msgram + resource_size(msgram_r))) {
			pr_err("%s: invalid tx fifo address\n", __func__);
@@ -1997,7 +1997,7 @@ static int glink_rpm_native_probe(struct platform_device *pdev)
			break;
		}
		++tocp;
		einfo->tx_fifo_size = *tocp;
		einfo->tx_fifo_size = *tocp - sizeof(*einfo->tx_ch_desc);
		if (einfo->tx_fifo_size > resource_size(msgram_r) ||
			(uintptr_t)(einfo->tx_fifo + einfo->tx_fifo_size) >
				(uintptr_t)(msgram + resource_size(msgram_r))) {
@@ -2022,7 +2022,7 @@ static int glink_rpm_native_probe(struct platform_device *pdev)
		}
		++tocp;
		einfo->rx_ch_desc = msgram + *tocp;
		einfo->rx_fifo = einfo->rx_ch_desc + sizeof(*einfo->rx_ch_desc);
		einfo->rx_fifo = einfo->rx_ch_desc + 1;
		if ((uintptr_t)einfo->rx_fifo >
				(uintptr_t)(msgram + resource_size(msgram_r))) {
			pr_err("%s: invalid rx fifo address\n", __func__);
@@ -2030,7 +2030,7 @@ static int glink_rpm_native_probe(struct platform_device *pdev)
			break;
		}
		++tocp;
		einfo->rx_fifo_size = *tocp;
		einfo->rx_fifo_size = *tocp - sizeof(*einfo->rx_ch_desc);
		if (einfo->rx_fifo_size > resource_size(msgram_r) ||
			(uintptr_t)(einfo->rx_fifo + einfo->rx_fifo_size) >
				(uintptr_t)(msgram + resource_size(msgram_r))) {