Skip to content

Commit fec0abf

Browse files
stefano-garzarellamstsirkin
authored andcommitted
vhost_task: fix vhost_task_create() documentation
Commit cb38090 ("vhost: return task creation error instead of NULL") changed the return value of vhost_task_create(), but did not update the documentation. Reflect the change in the documentation: on an error, vhost_task_create() returns an ERR_PTR() and no longer NULL. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Message-Id: <20250327124435.142831-1-sgarzare@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent 5326ab7 commit fec0abf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/vhost_task.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ EXPORT_SYMBOL_GPL(vhost_task_stop);
111111
* @arg: data to be passed to fn and handled_kill
112112
* @name: the thread's name
113113
*
114-
* This returns a specialized task for use by the vhost layer or NULL on
114+
* This returns a specialized task for use by the vhost layer or ERR_PTR() on
115115
* failure. The returned task is inactive, and the caller must fire it up
116116
* through vhost_task_start().
117117
*/

0 commit comments

Comments
 (0)