mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Cross-merge networking fixes after downstream PR (net-6.18-rc7). No conflicts, adjacent changes: tools/testing/selftests/net/af_unix/Makefilee1bb28bf13("selftest: af_unix: Add test for SO_PEEK_OFF.")45a1cd8346("selftests: af_unix: Add tests for ECONNRESET and EOF semantics") Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@@ -2938,6 +2938,7 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,
|
||||
|
||||
u = unix_sk(sk);
|
||||
|
||||
redo:
|
||||
/* Lock the socket to prevent queue disordering
|
||||
* while sleeps in memcpy_tomsg
|
||||
*/
|
||||
@@ -2949,7 +2950,6 @@ static int unix_stream_read_generic(struct unix_stream_read_state *state,
|
||||
struct sk_buff *skb, *last;
|
||||
int chunk;
|
||||
|
||||
redo:
|
||||
unix_state_lock(sk);
|
||||
if (sock_flag(sk, SOCK_DEAD)) {
|
||||
err = -ECONNRESET;
|
||||
@@ -2999,7 +2999,6 @@ again:
|
||||
goto out;
|
||||
}
|
||||
|
||||
mutex_lock(&u->iolock);
|
||||
goto redo;
|
||||
unlock:
|
||||
unix_state_unlock(sk);
|
||||
|
||||
Reference in New Issue
Block a user