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

Commit 64485a92 authored by Vipin Deep Kaur's avatar Vipin Deep Kaur
Browse files

spi: spi-geni-qcom: Check for Rx DMA channel being null



If Rx dma request channel fails, log it as an error and
exit the gsi event callback setup routine.

Change-Id: Idb92be41ddce2011eb0f74674cb31150860ae9bc
Signed-off-by: default avatarVipin Deep Kaur <vkaur@codeaurora.org>
parent 1526c9c6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -861,6 +861,7 @@ static int spi_geni_prepare_transfer_hardware(struct spi_master *spi)
				dev_info(mas->dev, "Failed to get rx DMA ch %ld\n",
							PTR_ERR(mas->rx));
				dma_release_channel(mas->tx);
				goto setup_ipc;
			}
			mas->gsi = devm_kzalloc(mas->dev,
				(sizeof(struct spi_geni_gsi) * NUM_SPI_XFER),