Commit c5a33827 authored by Borislav Petkov (AMD)'s avatar Borislav Petkov (AMD)

virt/coco/sev-guest: Remove the disable_vmpck label in handle_guest_request()

Call the function directly instead.

No functional changes.
Signed-off-by: default avatarBorislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20230307192449.24732-5-bp@alien8.de
parent 970ab823
...@@ -405,7 +405,8 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in ...@@ -405,7 +405,8 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in
dev_alert(snp_dev->dev, dev_alert(snp_dev->dev,
"Detected error from ASP request. rc: %d, fw_err: %llu\n", "Detected error from ASP request. rc: %d, fw_err: %llu\n",
rc, *fw_err); rc, *fw_err);
goto disable_vmpck; snp_disable_vmpck(snp_dev);
return rc;
} }
rc = verify_and_dec_payload(snp_dev, resp_buf, resp_sz); rc = verify_and_dec_payload(snp_dev, resp_buf, resp_sz);
...@@ -413,14 +414,11 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in ...@@ -413,14 +414,11 @@ static int handle_guest_request(struct snp_guest_dev *snp_dev, u64 exit_code, in
dev_alert(snp_dev->dev, dev_alert(snp_dev->dev,
"Detected unexpected decode failure from ASP. rc: %d\n", "Detected unexpected decode failure from ASP. rc: %d\n",
rc); rc);
goto disable_vmpck; snp_disable_vmpck(snp_dev);
return rc;
} }
return 0; return 0;
disable_vmpck:
snp_disable_vmpck(snp_dev);
return rc;
} }
static int get_report(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg) static int get_report(struct snp_guest_dev *snp_dev, struct snp_guest_request_ioctl *arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment