[RAMEN9610-13839] [COMMON]initialize partner before first used
authormajor.chen <major.chen@samsung.com>
Tue, 26 Mar 2019 01:38:44 +0000 (09:38 +0800)
committerhskang <hs1218.kang@samsung.com>
Sun, 21 Apr 2019 09:10:18 +0000 (18:10 +0900)
commit8bf88a4d71ee6b2d65e8ef2adee5d4efa24b8a33
tree69fd4f38638b34a59c2932da28c582d12883145f
parent737fe6444015a6e639bbf0c7497b750a2bc70274
[RAMEN9610-13839] [COMMON]initialize partner before first used

one kernel panic issue found in product_show , due to
dwc3_otg_init() use uninitialized local variable partner to call typec_register_partner,
it result in partner->identity is setted with unexpected value.
reproduce steps: adb shell cat /sys/class/typec/port0-partner/identity/product

Change-Id: Id0e2d04c20b510563b8b0a0ef786ba4e89d6a50c
drivers/usb/dwc3/otg.c [changed mode: 0644->0755]