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

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

Merge "spi_qsd: Fix for SPI crash while updating the message status"

parents 1be8fe1d c3beccb7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1828,7 +1828,9 @@ static int msm_spi_transfer_one_message(struct spi_master *master,
				tr->speed_hz, tr->bits_per_word,
				tr->tx_buf, tr->rx_buf);
			status_error = -EINVAL;
			goto out;
			msg->status = status_error;
			spi_finalize_current_message(master);
			return 0;
		}
	}

@@ -1871,7 +1873,6 @@ static int msm_spi_transfer_one_message(struct spi_master *master,
	if (dd->suspended)
		wake_up_interruptible(&dd->continue_suspend);

out:
	dd->cur_msg->status = status_error;
	spi_finalize_current_message(master);
	return 0;