[PATCH v1 0/5] coresight: Fix device registration and unregistration

Leo Yan posted 5 patches 9 months ago
There is a newer version of this series
drivers/hwtracing/coresight/coresight-core.c | 67 +++++++++++---------
1 file changed, 37 insertions(+), 30 deletions(-)
[PATCH v1 0/5] coresight: Fix device registration and unregistration
Posted by Leo Yan 9 months ago
This series is to fix device registration and unregistration.

The first patch addresses the resource is not released properly for a
failure case during a device registration.

The second patch is to use mutex to protect unregistration flow.

The last three patches are for refactoring.  Patch 03 explicitly uses
the parent device handler.  Patch 04 separates the success and failure
flows for code readable and easier maintenance.  Patch 05 improves the
error handling by invoking specific functions for resource cleanup.


Leo Yan (5):
  coresight: Correct sink ID map allocation failure handling
  coresight: Protect unregistration with mutex
  coresight: Explicitly use the parent device handler
  coresight: Separate failure and success flows
  coresight: Refine error handling for device registration

 drivers/hwtracing/coresight/coresight-core.c | 67 +++++++++++---------
 1 file changed, 37 insertions(+), 30 deletions(-)

-- 
2.34.1