diff options
| author | Zixun LI <[email protected]> | 2026-06-06 10:27:09 +0200 |
|---|---|---|
| committer | Mattijs Korpershoek <[email protected]> | 2026-06-15 09:15:25 +0200 |
| commit | 033eb908d0a8ed938bc652f34a2d702a29a8726f (patch) | |
| tree | 8b98c308dc9cc90689234c1ae788e3608a904591 /tools | |
| parent | e41e97e6e6061fec5a2fb069eaad662cf6359a93 (diff) | |
usb: gadget: atmel: use calloc() to allocate endpoint list
malloc() doesn't zero out memory, leaving ep->ep.enabled uninitiated,
which could make this flag falsely true.
In next usb_ep_enable() call since this flag is true, ep->ops->enable()
will be skipped. Then usb_ep_queue() will fail on uninitialized endpoint.
Fixes: 59310d1ecb9f ("usb: gadget: introduce 'enabled' flag in struct usb_ep")
Signed-off-by: Zixun LI <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mattijs Korpershoek <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
