diff options
| author | xiongweimin <xiongweimin@kylinos.cn> | 2026-07-14 10:44:34 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-19 06:38:47 -0400 |
| commit | b40b933e8dff8f1af7b4dab53df8ba6880b3588d (patch) | |
| tree | 626334d5152b9351db87859b0a1963cf426c21fd /drivers/vhost | |
| parent | 68e00d9212929805b40dcb9166755610f4f4acee (diff) | |
| download | linux-next-b40b933e8dff8f1af7b4dab53df8ba6880b3588d.tar.gz linux-next-b40b933e8dff8f1af7b4dab53df8ba6880b3588d.zip | |
vhost: fix inaccurate kdoc in iotlb helpers
Correct missing "if" in the add_range_ctx return description, and
align vhost_iotlb_alloc documentation with its NULL return on
allocation failure.
Signed-off-by: xiongweimin <xiongweimin@kylinos.cn>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260714024434.188302-1-15927021679@163.com>
Diffstat (limited to 'drivers/vhost')
| -rw-r--r-- | drivers/vhost/iotlb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/vhost/iotlb.c b/drivers/vhost/iotlb.c index a1d4376a5b87..3e5748e4d5fd 100644 --- a/drivers/vhost/iotlb.c +++ b/drivers/vhost/iotlb.c @@ -50,7 +50,7 @@ EXPORT_SYMBOL_GPL(vhost_iotlb_map_free); * @perm: access permission of this range * @opaque: the opaque pointer for the new mapping * - * Returns an error last is smaller than start or memory allocation + * Returns an error if last is smaller than start or memory allocation * fails */ int vhost_iotlb_add_range_ctx(struct vhost_iotlb *iotlb, @@ -162,11 +162,11 @@ void vhost_iotlb_init(struct vhost_iotlb *iotlb, unsigned int limit, EXPORT_SYMBOL_GPL(vhost_iotlb_init); /** - * vhost_iotlb_alloc - add a new vhost IOTLB + * vhost_iotlb_alloc - allocate a new vhost IOTLB * @limit: maximum number of IOTLB entries * @flags: VHOST_IOTLB_FLAG_XXX * - * Returns an error is memory allocation fails + * Returns NULL if memory allocation fails */ struct vhost_iotlb *vhost_iotlb_alloc(unsigned int limit, unsigned int flags) { |
