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

Commit f816e177 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: use correct API to free memory"

parents 8eb717e1 9cd7f312
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1660,7 +1660,7 @@ static int msm_geni_serial_port_setup(struct uart_port *uport)
		msm_port->rx_buf = devm_kzalloc(uport->dev, DMA_RX_BUF_SIZE,
								GFP_KERNEL);
		if (!msm_port->rx_buf) {
			kfree(msm_port->rx_fifo);
			devm_kfree(uport->dev, msm_port->rx_fifo);
			msm_port->rx_fifo = NULL;
			ret = -ENOMEM;
			goto exit_portsetup;