aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2015-02-13 14:51:02 +0100
committerDavid S. Miller <davem@davemloft.net>2015-02-13 07:17:05 -0800
commit0416605548766782acee60701b5c712e9b9e1bc2 (patch)
tree81f8ebe19c80ac3fbe29b1044885847002047693 /net
parenttcp: make sure skb is not shared before using skb_get() (diff)
downloadlinux-dev-0416605548766782acee60701b5c712e9b9e1bc2.tar.xz
linux-dev-0416605548766782acee60701b5c712e9b9e1bc2.zip
hso: fix rx parsing logic when skb allocation fails
If skb allocation fails once the IP header has been received, the rx state is being set to WAIT_SYNC. The logic, though, shouldn't directly return, as the buffer may contain a full packet, and therefore the WAIT_SYNC state needs to be processed (resetting state to WAIT_IP, clearing rx_buf_size and re-initializing rx_buf_missing). So, just let the while loop continue so that in the next iteration the WAIT_SYNC state cleanly stops the loop. The WAIT_SYNC processing will be done just after that, only if the end of packet is flagged. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions