[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:24 +0000 (20:23 +0300)
commit2f32099115d0892a8fc88556e68bec0d24b05b19
treef3e7c3964ce692b3c4d94c301129e2748b0cd455
parentbb36697ffc2def902c65be9798e552e642e8dbca
[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]