diff options
author | Jason Wang <jasowang@redhat.com> | 2020-04-13 17:37:38 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-04-17 06:05:30 -0400 |
commit | ac8b85f9ef14a6b43ff52b71631231c9599d1442 (patch) | |
tree | 5a184a8fa26f13e893559c00a5e71215e7514112 /drivers/vdpa | |
parent | 58ad13729a8a3e0a354de46eaf9969f9116d4763 (diff) | |
download | linux-ac8b85f9ef14a6b43ff52b71631231c9599d1442.tar.bz2 |
vdpa: fix comment of vdpa_register_device()
The function should be called only after a success calling for
vdpa_alloc_device().
Reported-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200413093738.28467-1-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa')
-rw-r--r-- | drivers/vdpa/vdpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vdpa/vdpa.c b/drivers/vdpa/vdpa.c index e9ed6a2b635b..ff6562f602e0 100644 --- a/drivers/vdpa/vdpa.c +++ b/drivers/vdpa/vdpa.c @@ -116,7 +116,7 @@ EXPORT_SYMBOL_GPL(__vdpa_alloc_device); /** * vdpa_register_device - register a vDPA device - * Callers must have a succeed call of vdpa_init_device() before. + * Callers must have a succeed call of vdpa_alloc_device() before. * @vdev: the vdpa device to be registered to vDPA bus * * Returns an error when fail to add to vDPA bus |