diff options
Diffstat (limited to 'net/rxrpc/ar-error.c')
-rw-r--r-- | net/rxrpc/ar-error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rxrpc/ar-error.c b/net/rxrpc/ar-error.c index 2c27df1ffa17..6cb3e8890e7e 100644 --- a/net/rxrpc/ar-error.c +++ b/net/rxrpc/ar-error.c | |||
@@ -100,8 +100,10 @@ void rxrpc_UDP_error_report(struct sock *sk) | |||
100 | } | 100 | } |
101 | 101 | ||
102 | if (mtu < peer->mtu) { | 102 | if (mtu < peer->mtu) { |
103 | spin_lock_bh(&peer->lock); | ||
103 | peer->mtu = mtu; | 104 | peer->mtu = mtu; |
104 | peer->maxdata = peer->mtu - peer->hdrsize; | 105 | peer->maxdata = peer->mtu - peer->hdrsize; |
106 | spin_unlock_bh(&peer->lock); | ||
105 | _net("Net MTU %u (maxdata %u)", | 107 | _net("Net MTU %u (maxdata %u)", |
106 | peer->mtu, peer->maxdata); | 108 | peer->mtu, peer->maxdata); |
107 | } | 109 | } |