lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200910090524.5147-1-linmiaohe@huawei.com>
Date:   Thu, 10 Sep 2020 05:05:24 -0400
From:   Miaohe Lin <linmiaohe@...wei.com>
To:     <davem@...emloft.net>, <viro@...iv.linux.org.uk>,
        <mingo@...nel.org>, <keescook@...omium.org>, <ardb@...nel.org>,
        <will@...nel.org>
CC:     <linux-kernel@...r.kernel.org>, <linmiaohe@...wei.com>
Subject: [PATCH] lib: Fix some broken comments

Fix some weird and confusing comments.

Signed-off-by: Miaohe Lin <linmiaohe@...wei.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ