projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ad137
)
vdpa: fix comment of vdpa_register_device()
author
Jason Wang
<jasowang@redhat.com>
Mon, 13 Apr 2020 09:37:38 +0000
(17:37 +0800)
committer
Michael S. Tsirkin
<mst@redhat.com>
Fri, 17 Apr 2020 10:05:30 +0000
(06:05 -0400)
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>
drivers/vdpa/vdpa.c
patch
|
blob
|
history
diff --git
a/drivers/vdpa/vdpa.c
b/drivers/vdpa/vdpa.c
index e9ed6a2b635b9ea9cf0c14f6834884c31eeb7f2c..ff6562f602e055fe14024572cbaf22cdddce2ae9 100644
(file)
--- 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