ANDROID: gunyah: GKI: Fix the wrong return value in gunyah driver

When function gunyah_qtvm_attach call successfully,
it should return value 0 and not -EINVAL.

Bug: 421780599
Change-Id: I549f38a6e7e0d0fd814e475f157d63332031cc94
Signed-off-by: Peng Yang <quic_penyan@quicinc.com>
This commit is contained in:
Peng Yang
2025-06-02 01:35:43 -07:00
parent eb58d7821a
commit 22cf53077b

View File

@@ -209,7 +209,7 @@ static long gunyah_qtvm_attach(struct gunyah_vm *ghvm, struct gunyah_auth_desc *
list_add(&vm->list, &gunyah_qtvm_list);
mutex_unlock(&gunyah_qtvm_lock);
return -EINVAL;
return 0;
}
static void gunyah_qtvm_detach(struct gunyah_vm *ghvm)