Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/unix: fix logic about sk_peek_offset
Now send with MSG_PEEK can return data from multiple SKBs. Unfortunately we take into account the peek offset for each skb, that is wrong. We need to apply the peek offset only once. In addition, the peek offset should be used only if MSG_PEEK is set. Cc: "David S. Miller" <[email protected]> (maintainer:NETWORKING Cc: Eric Dumazet <[email protected]> (commit_signer:1/14=7%) Cc: Aaron Conole <[email protected]> Fixes: 9f389e3 ("af_unix: return data from multiple SKBs on recv() with MSG_PEEK flag") Signed-off-by: Andrey Vagin <[email protected]> Tested-by: Aaron Conole <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information