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

Commit 7c14450e authored by Ben Dooks's avatar Ben Dooks Committed by Pierre Ossman
Browse files

MMC: S3C24XX: Ensure host->mrq->data is valid



Fix a crash if host->mrq->data is NULL on ending a transfer.

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent cf0984c8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -353,6 +353,7 @@ static void pio_tasklet(unsigned long data)
			    (host->pio_active == XFER_READ) ? "read" : "write",
			    host->pio_count, host->pio_words);

			if (host->mrq->data)
				host->mrq->data->error = -EINVAL;
		}