* [PATCH] lib: Fix some broken comments
@ 2020-09-10 9:05 Miaohe Lin
2020-09-10 19:24 ` Kees Cook
0 siblings, 1 reply; 2+ messages in thread
From: Miaohe Lin @ 2020-09-10 9:05 UTC (permalink / raw)
To: davem, viro, mingo, keescook, ardb, will; +Cc: linux-kernel, linmiaohe
Fix some weird and confusing comments.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
lib/checksum.c | 2 +-
lib/refcount.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/checksum.c b/lib/checksum.c
index c7861e84c526..cd0175c6a355 100644
--- a/lib/checksum.c
+++ b/lib/checksum.c
@@ -146,7 +146,7 @@ __sum16 ip_compute_csum(const void *buff, int len)
EXPORT_SYMBOL(ip_compute_csum);
/*
- * copy from ds while checksumming, otherwise like csum_partial
+ * copy from src while checksumming, otherwise like csum_partial
*/
__wsum
csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
diff --git a/lib/refcount.c b/lib/refcount.c
index ebac8b7d15a7..39e179ed2c58 100644
--- a/lib/refcount.c
+++ b/lib/refcount.c
@@ -161,7 +161,7 @@ EXPORT_SYMBOL(refcount_dec_and_lock);
* interrupts if able to decrement refcount to 0
* @r: the refcount
* @lock: the spinlock to be locked
- * @flags: saved IRQ-flags if the is acquired
+ * @flags: saved IRQ-flags if the @lock is acquired
*
* Same as refcount_dec_and_lock() above except that the spinlock is acquired
* with disabled interupts.
--
2.19.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] lib: Fix some broken comments
2020-09-10 9:05 [PATCH] lib: Fix some broken comments Miaohe Lin
@ 2020-09-10 19:24 ` Kees Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2020-09-10 19:24 UTC (permalink / raw)
To: Miaohe Lin; +Cc: davem, viro, mingo, ardb, will, linux-kernel
On Thu, Sep 10, 2020 at 05:05:24AM -0400, Miaohe Lin wrote:
> Fix some weird and confusing comments.
>
> Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
--
Kees Cook
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-10 19:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 9:05 [PATCH] lib: Fix some broken comments Miaohe Lin
2020-09-10 19:24 ` Kees Cook
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.