diff options
| author | Andrey Vagin <[email protected]> | 2017-05-17 18:39:05 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-05-18 14:32:58 +0000 |
| commit | de321ed38471257ee45eac145bfd539254d13954 (patch) | |
| tree | 9ad79c96c56f8380b39b4ef81514a6aa5dbb798b /drivers/net/dsa/dsa_loop.c | |
| parent | net: make struct dst_entry::dev first member (diff) | |
| download | kernel-de321ed38471257ee45eac145bfd539254d13954.tar.gz kernel-de321ed38471257ee45eac145bfd539254d13954.zip | |
net: fix __skb_try_recv_from_queue to return the old behavior
This function has to return NULL on a error case, because there is a
separate error variable.
The offset has to be changed only if skb is returned
v2: fix udp code to not use an extra variable
Cc: Paolo Abeni <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: David S. Miller <[email protected]>
Fixes: 65101aeca522 ("net/sock: factor out dequeue/peek with offset cod")
Signed-off-by: Andrei Vagin <[email protected]>
Acked-by: Paolo Abeni <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions
