summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2016-06-30 17:10:23 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-03 06:23:18 +0200
commita12cf3214235681a347a53c93378479caab3f404 (patch)
tree9afec8dc476282de57e7ccb390d8a7f6c4ff40a5 /net/ipv4/tcp_input.c
parent36be44e1905d593402d373aa35b48ceec9ae46f0 (diff)
usb: gadget: Add the gserial port checking in gs_start_tx()
commit 511a36d2f357724312bb3776d2f6eed3890928b2 upstream. When usb gadget is set gadget serial function, it will be crash in below situation. It will clean the 'port->port_usb' pointer in gserial_disconnect() function when usb link is inactive, but it will release lock for disabling the endpoints in this function. Druing the lock release period, it maybe complete one request to issue gs_write_complete()--->gs_start_tx() function, but the 'port->port_usb' pointer had been set NULL, thus it will be crash in gs_start_tx() function. This patch adds the 'port->port_usb' pointer checking in gs_start_tx() function to avoid this situation. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions