Skip to content

Commit ac8b85f

Browse files
jasowangmstsirkin
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 58ad137 commit ac8b85f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vdpa/vdpa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ EXPORT_SYMBOL_GPL(__vdpa_alloc_device);
116116

117117
/**
118118
* vdpa_register_device - register a vDPA device
119-
* Callers must have a succeed call of vdpa_init_device() before.
119+
* Callers must have a succeed call of vdpa_alloc_device() before.
120120
* @vdev: the vdpa device to be registered to vDPA bus
121121
*
122122
* Returns an error when fail to add to vDPA bus

0 commit comments

Comments
 (0)