diff options
author | William Kucharski <william.kucharski@oracle.com> | 2021-12-01 07:45:22 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-08 08:50:14 +0100 |
commit | 11560e97716c261e29f04ea1190aaa44456d8754 (patch) | |
tree | 55de41b9b37a66fe9496fdfb12b5bd77a5b8c338 | |
parent | 2fd949365fe6628fb22f9224782592cb1fff600c (diff) | |
download | linux-stable-11560e97716c261e29f04ea1190aaa44456d8754.tar.gz linux-stable-11560e97716c261e29f04ea1190aaa44456d8754.tar.bz2 linux-stable-11560e97716c261e29f04ea1190aaa44456d8754.zip |
net/rds: correct socket tunable error in rds_tcp_tune()
commit 19f36edf14bcdb783aef3af8217df96f76a8ce34 upstream.
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: c6a58ffed536 ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket")
Signed-off-by: William Kucharski <william.kucharski@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/rds/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c index d0bce439198f..d4e6466d3989 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c @@ -502,7 +502,7 @@ void rds_tcp_tune(struct socket *sock) sk->sk_userlocks |= SOCK_SNDBUF_LOCK; } if (rtn->rcvbuf_size > 0) { - sk->sk_sndbuf = rtn->rcvbuf_size; + sk->sk_rcvbuf = rtn->rcvbuf_size; sk->sk_userlocks |= SOCK_RCVBUF_LOCK; } release_sock(sk); |