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: <cover.1746114596.git.karanja99erick@gmail.com>
Date: Thu,  1 May 2025 18:56:10 +0300
From: Erick Karanja <karanja99erick@...il.com>
To: manivannan.sadhasivam@...aro.org,
	kw@...ux.com
Cc: kishon@...nel.org,
	bhelgaas@...gle.com,
	linux-pci@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	julia.lawall@...ia.fr,
	Erick Karanja <karanja99erick@...il.com>
Subject: [PATCH 0/2] Use scoped_guard to safely manage mutex locking

This change replaces manual mutex locking/unlocking with scoped_guard
to ensure mutexes are always released safely, even in the presence of
early returns or errors. It simplifies control flow and eliminates the
need for explicit goto-based cleanup blocks.

Erick Karanja (2):
  PCI: endpoint: Replace manual mutex handling with scoped_guard()
  PCI: endpoint: Use scoped_guard for manual mutex lock/unlock

 drivers/pci/endpoint/functions/pci-epf-mhi.c | 358 +++++++++----------
 drivers/pci/endpoint/pci-epc-core.c          |  53 ++-
 2 files changed, 190 insertions(+), 221 deletions(-)

-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ