powerpc: fadump: use lock guard for mutex
authorShrikanth Hegde <sshegde@linux.ibm.com>
Mon, 5 May 2025 07:53:30 +0000 (13:23 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 23 Jun 2025 04:27:10 +0000 (09:57 +0530)
commit56534636c3c376a6868764eefd2a44b25f64fc0b
tree4afc983a2a6a80f836a2ae306a5069e4b3834304
parent6a21d3c5b3ba7e515c92193d5ccda55c9c0f43f4
powerpc: fadump: use lock guard for mutex

use scoped_guard for scope based resource management of mutex.
This would make the code simpler and easier to maintain.

More details on lock guards can be found at
https://lore.kernel.org/all/20230612093537.614161713@infradead.org/T/#u

Reviewed-by: Srikar Dronamraju <srikar@linux.ibm.com>
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Reviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250505075333.184463-4-sshegde@linux.ibm.com
arch/powerpc/kernel/fadump.c