Commit 0e479b46 authored by Lad Prabhakar's avatar Lad Prabhakar Committed by Greg Kroah-Hartman
Browse files

serial: 8250_bcm7271: Fix return error code in case of dma_alloc_coherent() failure

parent 99a507a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1075,7 +1075,7 @@ static int brcmuart_probe(struct platform_device *pdev)
						   priv->rx_size,
						   &priv->rx_addr, GFP_KERNEL);
		if (!priv->rx_bufs) {
			ret = -EINVAL;
			ret = -ENOMEM;
			goto err;
		}
		priv->tx_size = UART_XMIT_SIZE;
@@ -1083,7 +1083,7 @@ static int brcmuart_probe(struct platform_device *pdev)
						  priv->tx_size,
						  &priv->tx_addr, GFP_KERNEL);
		if (!priv->tx_buf) {
			ret = -EINVAL;
			ret = -ENOMEM;
			goto err;
		}
	}