android_kernel_motorola_sm6375/drivers/isdn
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Abdun Nihaal 475032fa2b isdn: mISDN: hfcsusb: fix memory leak in hfcsusb_probe()
commit 3f978e3f1570155a1327ffa25f60968bc7b9398f upstream.

In hfcsusb_probe(), the memory allocated for ctrl_urb gets leaked when
setup_instance() fails with an error code. Fix that by freeing the urb
before freeing the hw structure. Also change the error paths to use the
goto ladder style.

Compile tested only. Issue found using a prototype static analysis tool.

Fixes: 69f52adb2d ("mISDN: Add HFC USB driver")
Signed-off-by: Abdun Nihaal <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-12-03 12:45:19 +01:00
..
capi
hardware isdn: mISDN: hfcsusb: fix memory leak in hfcsusb_probe() 2025-12-03 12:45:19 +01:00
mISDN
Kconfig
Makefile