diff options
| author | Francois Berder <[email protected]> | 2026-05-09 19:22:41 +0200 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2026-05-13 13:11:07 +0200 |
| commit | c8f68234422b8afb516fea2336b678750f10ba5b (patch) | |
| tree | 789fe45ff426f893e2bf17d809e598595d4edb65 /src | |
| parent | 36d4c653580824b16574560b21d4401614d8b68e (diff) | |
usb: gadget: f_acm: Fix memory leak in acm_add
If udc_device_get_by_index fails, the f_acm struct was not released.
Free it before returning the error.
Signed-off-by: Francois Berder <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Link: https://patch.msgid.link/BESP194MB2805271AD5DBE47B322F8DC3DA3A2@BESP194MB2805.EURP194.PROD.OUTLOOK.COM
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
