summaryrefslogtreecommitdiff
path: root/lib/pm-notifier-error-inject.c
diff options
context:
space:
mode:
authorHemant Kumar <hemantk@codeaurora.org>2018-09-19 11:34:48 -0700
committerAjay Agarwal <ajaya@codeaurora.org>2019-01-09 10:17:01 +0530
commit250bb0182b12f78a299c28873baba0a0828c0a29 (patch)
tree96457a789f9839ad08a58f4d33ebc4a644c817f3 /lib/pm-notifier-error-inject.c
parent7490518aee15e8d19a30010e91c8fd5d82926a14 (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: I581d5e9fa7f3610e96e2e3705ab7e095a93a2a59 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'lib/pm-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions