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>] [day] [month] [year] [list]
Message-ID: <20200921120131.42303-1-linmiaohe@huawei.com>
Date:   Mon, 21 Sep 2020 08:01:31 -0400
From:   Miaohe Lin <linmiaohe@...wei.com>
To:     <ardb@...nel.org>, <will@...nel.org>, <keescook@...omium.org>,
        <mingo@...nel.org>
CC:     <linux-kernel@...r.kernel.org>, <linmiaohe@...wei.com>
Subject: [PATCH v3] lib: fix incomplete comment in refcount_dec_and_lock_irqsave()

The description of arg flags is incomplete. The flags is saved IRQ-flags
when the @lock is acquired.

Acked-by: Will Deacon <will@...nel.org>
Signed-off-by: Miaohe Lin <linmiaohe@...wei.com>
---
 lib/refcount.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/refcount.c b/lib/refcount.c
index ebac8b7d15a7..76e1e116ccd8 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 @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