]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
virt: vbox: Log an error when we fail to get the host version
authorHans de Goede <hdegoede@redhat.com>
Wed, 18 Apr 2018 13:24:50 +0000 (15:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 11:41:55 +0000 (13:41 +0200)
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>
drivers/virt/vboxguest/vboxguest_core.c

index 7411a535fda29e672e80cf48d1b6638b699783ce..2f3856a95856be43bcbfc6a4c3865f7099045368 100644 (file)
@@ -727,8 +727,10 @@ static int vbg_query_host_version(struct vbg_dev *gdev)
 
        rc = vbg_req_perform(gdev, req);
        ret = vbg_status_code_to_errno(rc);
-       if (ret)
+       if (ret) {
+               vbg_err("%s error: %d\n", __func__, rc);
                goto out;
+       }
 
        snprintf(gdev->host_version, sizeof(gdev->host_version), "%u.%u.%ur%u",
                 req->major, req->minor, req->build, req->revision);