projects
/
platform
/
adaptation
/
samsung_exynos
/
device-manager-plugin-odroid.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db3e023
)
checking unsupported usb function combination.
42/91542/2
accepted/tizen_3.0.m2_tv
accepted/tizen_3.0_common
accepted/tizen_3.0_ivi
accepted/tizen_3.0_tv
accepted/tizen_common
accepted/tizen_ivi
accepted/tizen_tv
tizen_3.0
tizen_3.0.m2
tizen_3.0_tv
accepted/tizen/3.0.m2/tv/20170104.100353
accepted/tizen/3.0/common/20161114.105118
accepted/tizen/3.0/ivi/20161028.123013
accepted/tizen/3.0/tv/20161028.122602
accepted/tizen/4.0/unified/20170816.011524
accepted/tizen/4.0/unified/20170828.224215
accepted/tizen/common/20161011.154305
accepted/tizen/ivi/20161011.234141
accepted/tizen/tv/20161011.234112
accepted/tizen/unified/20170309.031041
submit/tizen/20161011.055923
submit/tizen_3.0.m2/20170104.093748
submit/tizen_3.0/20161028.062323
submit/tizen_3.0/20161028.082323
submit/tizen_3.0_common/20161104.104000
submit/tizen_4.0/20170811.094300
submit/tizen_4.0/20170828.110001
submit/tizen_unified/20170308.100403
tizen_4.0.m1_release
author
taeyoung
<ty317.kim@samsung.com>
Mon, 10 Oct 2016 06:34:28 +0000
(15:34 +0900)
committer
Kunhoon Baik
<knhoon.baik@samsung.com>
Tue, 11 Oct 2016 04:32:50 +0000
(13:32 +0900)
refer to : https://review.tizen.org/gerrit/#/c/91714/
Change-Id: Ie8e9a4cbf8e3e4c0d625f8b24df3d16aa7074682
Signed-off-by: taeyoung <ty317.kim@samsung.com>
hw/usb_gadget/usb_gadget.c
patch
|
blob
|
history
diff --git
a/hw/usb_gadget/usb_gadget.c
b/hw/usb_gadget/usb_gadget.c
index
0bcb10b
..
fcf144c
100644
(file)
--- a/
hw/usb_gadget/usb_gadget.c
+++ b/
hw/usb_gadget/usb_gadget.c
@@
-185,7
+185,7
@@
static int simple_id_to_gadget(struct usb_gadget_id *gadget_id,
struct usb_gadget **_gadget)
{
struct usb_gadget *gadget;
- int n_configs;
+ int n_configs
= 0
;
/* zero terminates */
int functions[2][sizeof(gadget_id->function_mask)*8];
int n_functions;
@@
-285,7
+285,7
@@
static int simple_id_to_gadget(struct usb_gadget_id *gadget_id,
break;
};
- if (n_configs > 2) {
+ if (n_configs > 2
|| n_configs <= 0
) {
ret = -EINVAL;
goto free_gadget;
}