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-prev] [day] [month] [year] [list]
Message-ID: <CA+hkOd7ch=-Mi10njagF1bwW7fFRwm8fkiWD4RueMih02_12rw@mail.gmail.com>
Date: Wed, 1 Oct 2025 22:41:31 -0700
From: Alex Tran <alex.t.tran@...il.com>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org, 
	Linus Walleij <linus.walleij@...aro.org>
Subject: Re: [PATCH v1] gpio: gpio-grgpio: call request_irq after incrementing
 the reference count

> Any chance this could be made to use atomic_t instead?
>
> Like:
>
> if (atomic_fetch_add(1, &priv->uirqs) == 0) {
>         request_irq()
>         ...
> }
>
> ?
>
> Bart

Sure, the reference count can be converted to atomic_t. I'll follow up
with a v2 patch.

Thanks,
-- 
Alex Tran

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ