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

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

Merge "mmc: core: Fix possible NULL pointer dereference"

parents fe2fa5e7 11f2e46a
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -3617,10 +3617,13 @@ int mmc_suspend_host(struct mmc_host *host)

		if (!err) {
			if (host->bus_ops->suspend) {
				if (host->card) {
					err = mmc_stop_bkops(host->card);
					if (err)
						goto out;
				}
				err = host->bus_ops->suspend(host);
				if (host->card)
					MMC_UPDATE_BKOPS_STATS_SUSPEND(host->
						card->bkops_info.bkops_stats);
			}