[PATCH] kasan: Fix typo in kasan_poison_new_object documentation

Dominik Karol Piątkowski posted 1 patch 1 month ago
include/linux/kasan.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] kasan: Fix typo in kasan_poison_new_object documentation
Posted by Dominik Karol Piątkowski 1 month ago
Fix presumed copy-paste typo of kasan_poison_new_object documentation
referring to kasan_unpoison_new_object.

No functional changes.

Fixes: 1ce9a0523938 ("kasan: rename and document kasan_(un)poison_object_data")
Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>
---
 include/linux/kasan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/kasan.h b/include/linux/kasan.h
index 6bbfc8aa42e8..56465af31044 100644
--- a/include/linux/kasan.h
+++ b/include/linux/kasan.h
@@ -153,7 +153,7 @@ static __always_inline void kasan_unpoison_new_object(struct kmem_cache *cache,
 
 void __kasan_poison_new_object(struct kmem_cache *cache, void *object);
 /**
- * kasan_unpoison_new_object - Repoison a new slab object.
+ * kasan_poison_new_object - Repoison a new slab object.
  * @cache: Cache the object belong to.
  * @object: Pointer to the object.
  *
-- 
2.34.1
Re: [PATCH] kasan: Fix typo in kasan_poison_new_object documentation
Posted by Andrey Konovalov 1 month ago
On Wed, Oct 23, 2024 at 3:28 PM Dominik Karol Piątkowski
<dominik.karol.piatkowski@protonmail.com> wrote:
>
> Fix presumed copy-paste typo of kasan_poison_new_object documentation
> referring to kasan_unpoison_new_object.
>
> No functional changes.
>
> Fixes: 1ce9a0523938 ("kasan: rename and document kasan_(un)poison_object_data")
> Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@protonmail.com>
> ---
>  include/linux/kasan.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/kasan.h b/include/linux/kasan.h
> index 6bbfc8aa42e8..56465af31044 100644
> --- a/include/linux/kasan.h
> +++ b/include/linux/kasan.h
> @@ -153,7 +153,7 @@ static __always_inline void kasan_unpoison_new_object(struct kmem_cache *cache,
>
>  void __kasan_poison_new_object(struct kmem_cache *cache, void *object);
>  /**
> - * kasan_unpoison_new_object - Repoison a new slab object.
> + * kasan_poison_new_object - Repoison a new slab object.
>   * @cache: Cache the object belong to.
>   * @object: Pointer to the object.
>   *
> --
> 2.34.1
>

Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>

Thank you!