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

Commit 23ef43f2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mhi: core: Fix return value when checking bhi/e offsets"

parents 28e16a8b baa32b01
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -975,6 +975,7 @@ int mhi_async_power_up(struct mhi_controller *mhi_cntrl)
	if (val >= mhi_cntrl->len) {
		write_unlock_irq(&mhi_cntrl->pm_lock);
		MHI_ERR("Invalid bhi offset:%x\n", val);
		ret = -EINVAL;
		goto error_bhi_offset;
	}

@@ -992,6 +993,7 @@ int mhi_async_power_up(struct mhi_controller *mhi_cntrl)
		if (val >= mhi_cntrl->len) {
			write_unlock_irq(&mhi_cntrl->pm_lock);
			MHI_ERR("Invalid bhie offset:%x\n", val);
			ret = -EINVAL;
			goto error_bhi_offset;
		}