diff options
| author | Hemant Kumar <hemantk@codeaurora.org> | 2018-09-19 11:34:48 -0700 |
|---|---|---|
| committer | Ajay Agarwal <ajaya@codeaurora.org> | 2018-12-20 20:45:25 +0530 |
| commit | 108c841217974da6e7d9197e404c27dbeeaa8641 (patch) | |
| tree | 51ed4cbf9701b79560c04eb2c5c95bbfa47c8368 /lib/debugobjects.c | |
| parent | 5e5109f539aa4c5086465169481ee01dd579d008 (diff) | |
usb: gadget: u_audio: Check return value from config_ep_by_speed()
In case config_ep_by_speed() returns error, endpoint descriptors
would not get populated. This results into NULL pointer dereference
when ep desc is accessed later. Fix this by bailing out set_alt if
config_ep_by_speed() API returns error.
Change-Id: Iaf9a0001973753988ff200edad3ed8587b6a4181
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
