aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2018-04-18 09:24:50 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-23 07:41:55 -0400
commit19972dd568f8d1e701f8051fcff56562e0551f63 (patch)
treedde712c243c0c17d5220bc4817c404795aa0d0ff
parentfaf6a2a44164c0fb2c2a82692ab9051917514bce (diff)
virt: vbox: Log an error when we fail to get the host version
This was the only error path during probe without a message being logged about what went wrong, this fixes this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/virt/vboxguest/vboxguest_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/virt/vboxguest/vboxguest_core.c b/drivers/virt/vboxguest/vboxguest_core.c
index 7411a535fda2..2f3856a95856 100644
--- a/drivers/virt/vboxguest/vboxguest_core.c
+++ b/drivers/virt/vboxguest/vboxguest_core.c
@@ -727,8 +727,10 @@ static int vbg_query_host_version(struct vbg_dev *gdev)
727 727
728 rc = vbg_req_perform(gdev, req); 728 rc = vbg_req_perform(gdev, req);
729 ret = vbg_status_code_to_errno(rc); 729 ret = vbg_status_code_to_errno(rc);
730 if (ret) 730 if (ret) {
731 vbg_err("%s error: %d\n", __func__, rc);
731 goto out; 732 goto out;
733 }
732 734
733 snprintf(gdev->host_version, sizeof(gdev->host_version), "%u.%u.%ur%u", 735 snprintf(gdev->host_version, sizeof(gdev->host_version), "%u.%u.%ur%u",
734 req->major, req->minor, req->build, req->revision); 736 req->major, req->minor, req->build, req->revision);