diff options
| author | Abdun Nihaal <nihaal@cse.iitm.ac.in> | 2025-10-30 07:25:22 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-11-24 12:37:52 +0300 |
| commit | ea7936304ed74ab7f965d17f942a173ce91a5ca8 (patch) | |
| tree | 4ab7bae1f72be6f7f2d906e8ce158ac9cb54a814 /include/linux/overflow.h | |
| parent | 350d846bf1ad6227f76b2b96cdea72e75277a5ff (diff) | |
| download | linux-ea7936304ed74ab7f965d17f942a173ce91a5ca8.tar.xz | |
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: 69f52adb2d53 ("mISDN: Add HFC USB driver")
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Link: https://patch.msgid.link/20251030042524.194812-1-nihaal@cse.iitm.ac.in
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions
