#ifndef CORKING_H #define CORKING_H #include extern void set_tcp_cork(int fd); extern void set_tcp_uncork(int fd); extern void set_udp_cork(int fd); extern void set_udp_uncork(int fd); extern void set_sock_cork(int fd, bool is_udp); extern void set_sock_uncork(int fd, bool is_udp); #endif /* CORKING_H */ xt.git/atom/?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTal Shorer <tal.shorer@gmail.com>2016-04-25 15:53:29 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-26 14:50:02 -0700
commit607fb0f4d90cc9a4463bcb17c1417d8a709dfda1 (patch)
tree8179c4aa0618d839650e8c81a056d5a626179b58
parent02da2d72174c61988eb4456b53f405e3ebdebce4 (diff)
usb: musb: gadget: nuke endpoint before setting its descriptor to NULL
Some functions, such as f_sourcesink, rely on an endpoint's desc field during their requests' complete() callback, so clear it only _after_ nuking all requests to avoid NULL pointer dereference. Signed-off-by: Tal Shorer <tal.shorer@gmail.com> Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>