usb:gadget:Avoid double free pointer
authora17671 <a17671@motorola.com>
Wed, 26 Sep 2018 09:03:13 +0000 (17:03 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:17 +0000 (17:30 +0800)
commitb028bca10b1039508bc2eca67b9a16327ed26ef9
tree10f3587d41365ae46efdc26faf3fac9231f8404f
parent9d143bb61d5bc62684a3eb61e8e36c3348676d0c
usb:gadget:Avoid double free pointer

Reset the pointer to NULL after free
To avoid the double free of pointer

Change-Id: I35088a0352b947906318316a8e02fb950b1ee7a8
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1246578
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
drivers/usb/gadget/composite.c