]> git.itanic.dy.fi Git - linux-stable/commitdiff
vhost: fix typo in error message
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 1 Sep 2020 02:39:09 +0000 (10:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2020 22:34:49 +0000 (15:34 -0700)
"enable" should be "disable" when the function name is
vhost_disable_notify(), which does the disabling work.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/vhost.c

index 5857d4eec9d73f69c5a934e9cff635123773acfd..b45519ca66a7e9a0d0ff5fe9ead216db6297fded 100644 (file)
@@ -2537,7 +2537,7 @@ void vhost_disable_notify(struct vhost_dev *dev, struct vhost_virtqueue *vq)
        if (!vhost_has_feature(vq, VIRTIO_RING_F_EVENT_IDX)) {
                r = vhost_update_used_flags(vq);
                if (r)
-                       vq_err(vq, "Failed to enable notification at %p: %d\n",
+                       vq_err(vq, "Failed to disable notification at %p: %d\n",
                               &vq->used->flags, r);
        }
 }