diff options
-rw-r--r-- | net/rxrpc/ar-error.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rxrpc/ar-error.c b/net/rxrpc/ar-error.c index a9206087b4d7..db57458c824c 100644 --- a/net/rxrpc/ar-error.c +++ b/net/rxrpc/ar-error.c | |||
@@ -83,6 +83,7 @@ void rxrpc_UDP_error_report(struct sock *sk) | |||
83 | 83 | ||
84 | if (mtu == 0) { | 84 | if (mtu == 0) { |
85 | /* they didn't give us a size, estimate one */ | 85 | /* they didn't give us a size, estimate one */ |
86 | mtu = peer->if_mtu; | ||
86 | if (mtu > 1500) { | 87 | if (mtu > 1500) { |
87 | mtu >>= 1; | 88 | mtu >>= 1; |
88 | if (mtu < 1500) | 89 | if (mtu < 1500) |