summaryrefslogtreecommitdiff
path: root/scripts/basic/bin2c.c
diff options
context:
space:
mode:
authorLiangliang Lu <luliang@codeaurora.org>2017-09-17 15:34:55 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-10-11 18:27:43 -0700
commitc2a2c3243849b2786f5186f49a3c8ace2529f339 (patch)
tree5d265aa9b1d2ee0922ddd5774ade5d4309d06f7f /scripts/basic/bin2c.c
parent34f1071c18f56ceae77aa761578c639d59e67265 (diff)
usb: gadget: gsi: Defer freeing memory on free_inst if in use
In the case of gsi_free_inst() called, whole f_gst structure is freed. GSI control related API like gsi_ctrl_dev_poll do not check if f_gsi is freed or not, only check gsi_ctrl_port is NULL or not. If GSI driver is opened by userspace, gsi_free_inst() is executed, mark inst_exist to false but do not free instance structures and deregister misc device until misc device is closed. Besides, in the GSI control related API read/write/ioctl/poll, check if GSI instance is freed or not. Change-Id: I4245964989a1284f5180efb69b64bd63e9104059 Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
Diffstat (limited to 'scripts/basic/bin2c.c')
0 files changed, 0 insertions, 0 deletions