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

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

Merge "msm: vidc: check for venus_hfi_device state in resume"

parents 615adc7b 07b61e0c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4271,6 +4271,9 @@ static inline int __resume(struct venus_hfi_device *device)
	} else if (device->power_enabled) {
		dprintk(VIDC_DBG, "Power is already enabled\n");
		goto exit;
	} else if (!__core_in_valid_state(device)) {
		dprintk(VIDC_DBG, "venus_hfi_device in deinit state.");
		return -EINVAL;
	}

	dprintk(VIDC_DBG, "Resuming from power collapse\n");