mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
soc: qcom: Remove incorrect error check from Guest VM PIL Loader
Incorrect error check and return value in guestvm_load_start causes kernel to loop this function indefinitely. Change-Id: I483cc084b4caa02c3478abcc856123dfa14216e9 Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
parent
e8c9c4f0ab
commit
e3f87b092f
1 changed files with 3 additions and 3 deletions
|
|
@ -82,8 +82,8 @@ static ssize_t guestvm_load_start(struct kobject *kobj,
|
|||
|
||||
priv = container_of(kobj, struct guestvm_loader_private,
|
||||
vm_loader_kobj);
|
||||
if (ret != 1 || priv->vm_loaded) {
|
||||
dev_err(priv->dev, "invalid arguments for guestvm_loader.\n");
|
||||
if (priv->vm_loaded) {
|
||||
dev_err(priv->dev, "VM load has already been started\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ static ssize_t guestvm_load_start(struct kobject *kobj,
|
|||
schedule_work(&priv->vm_loader_work);
|
||||
}
|
||||
|
||||
return ret;
|
||||
return count;
|
||||
}
|
||||
static struct kobj_attribute guestvm_loader_attribute =
|
||||
__ATTR(boot_guestvm, 0220, NULL, guestvm_load_start);
|
||||
|
|
|
|||
Loading…
Reference in a new issue