Skip to content

Commit 19f36ed

Browse files
William Kucharskidavem330
authored andcommitted
net/rds: correct socket tunable error in rds_tcp_tune()
Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched. Fixes: c6a58ff ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket") Signed-off-by: William Kucharski <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 76d0016 commit 19f36ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rds/tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ void rds_tcp_tune(struct socket *sock)
500500
sk->sk_userlocks |= SOCK_SNDBUF_LOCK;
501501
}
502502
if (rtn->rcvbuf_size > 0) {
503-
sk->sk_sndbuf = rtn->rcvbuf_size;
503+
sk->sk_rcvbuf = rtn->rcvbuf_size;
504504
sk->sk_userlocks |= SOCK_RCVBUF_LOCK;
505505
}
506506
release_sock(sk);

0 commit comments

Comments
 (0)