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

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

Merge "scsi: ufs: fix a bug related to a null pointer access"

parents c80328e5 c283e488
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -6028,7 +6028,10 @@ int ufshcd_system_resume(struct ufs_hba *hba)
	int ret = 0;
	ktime_t start = ktime_get();

	if (!hba || !hba->is_powered || pm_runtime_suspended(hba->dev))
	if (!hba)
		return -EINVAL;

	if (!hba->is_powered || pm_runtime_suspended(hba->dev))
		/*
		 * Let the runtime resume take care of resuming
		 * if runtime suspended.