summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-02-19 15:33:17 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:38:30 -0800
commitae4abd33f1a1370761198529a4f51b986dc2ac7a (patch)
tree38f7ba703f2b02809cdaff52265086943d7b68a7 /net/ipv4/tcp_ipv4.c
parent1cc7574cc884d6da96b8e80f6cc11b6e1cf7b2dc (diff)
USB: gadget: f_mtp: dequeue request on error in mtp_read
In mtp_read(), if wait_event_interruptible() returns an error, we need to remove the request from the EP queue. Else, on the next call to mtp_read(), we will attempt to enqueue the request again, potentially corrupting the queue. This is what happens with musb_gadget_queue(), which does not check for duplicate requests. Based on a similar change to f_adb.c Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions