Created attachment 235186 [details] a possible patch bhnd_usb_attach() allocates PMU for dev with bhnd_alloc_pmu(). When bhnd_request_ext_rsrc() fails, relevant resource is not released, which will lead to a resource leak. We should release the relevant resource with bhnd_release_pmu() when bhnd_request_ext_rsrc() fails to avoid the resource leak.
Thank you for your proposal! Quick question - what is your hardware model to reproduce defect?
(In reply to Michael Zhilin from comment #1) static analysis
Comment on attachment 235186 [details] a possible patch ^Triage: convert this to text/plain and set the Patch flag so that the automation can see it.