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

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

Merge "serial: msm_geni_serial: set unmapped rx dma buffer to NULL"

parents d4c57f77 81c4b570
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1286,6 +1286,8 @@ static int msm_geni_serial_handle_dma_rx(struct uart_port *uport, bool drop_rx)

	geni_se_rx_dma_unprep(msm_port->wrapper_dev, msm_port->rx_dma,
			      DMA_RX_BUF_SIZE);
	msm_port->rx_dma = (dma_addr_t)NULL;

	rx_bytes = geni_read_reg_nolog(uport->membase, SE_DMA_RX_LEN_IN);
	if (unlikely(!msm_port->rx_buf)) {
		IPC_LOG_MSG(msm_port->ipc_log_rx, "%s: NULL Rx_buf\n",