bhnd_pmu_core_attach() allocates resource with bhnd_alloc_resource_any() and bhnd_alloc_pmu(). When some error occurs in this funciton, some relevant resource is not released, which will lead to a resource leak. We should release the relevant relevant with bhnd_release_resource() and bhnd_release_pmu() on the error path to avoid the resource leak.
Created attachment 235185 [details] a possible patch