Use scoped_guard to safely manage mutex locking
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | PCI: endpoint: Replace manual mutex handling with scoped_guard()drivers/ | +166 | 1 reply | |
| 2/2 | PCI: endpoint: Use scoped_guard for manual mutex lock/unlockdrivers/ | +24 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [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(-)
Signature · 1 line
2.43.0