[PATCH 2/2] usb: atm: ueagle-atm: add missing uea_leaves() in uea_probe()
From: Mauricio Faria de Oliveira
Date: Fri May 15 2026 - 19:55:35 EST
Pair the existing uea_enters() (function entry debug message) with
a missing uea_leaves() (function exit debug message) in uea_probe().
Signed-off-by: Mauricio Faria de Oliveira <mfo@xxxxxxxxxx>
---
drivers/usb/atm/ueagle-atm.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c
index 2730e7d41c89a354e115e38d97e314f888c62137..969d3d208680359c0c1a3efd581a8ce2fd8b1004 100644
--- a/drivers/usb/atm/ueagle-atm.c
+++ b/drivers/usb/atm/ueagle-atm.c
@@ -2598,8 +2598,10 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
usb_reset_device(usb);
- if (UEA_IS_PREFIRM(id))
- return uea_load_firmware(usb, UEA_CHIP_VERSION(id));
+ if (UEA_IS_PREFIRM(id)) {
+ ret = uea_load_firmware(usb, UEA_CHIP_VERSION(id));
+ goto out;
+ }
ret = usbatm_usb_probe(intf, id, &uea_usbatm_driver);
if (ret == 0) {
@@ -2613,6 +2615,8 @@ static int uea_probe(struct usb_interface *intf, const struct usb_device_id *id)
wake_up_process(sc->kthread);
}
+out:
+ uea_leaves(usb);
return ret;
}
--
2.51.0