Merge tag 'rxrpc-fixes-20200605' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / net / rxrpc / peer_event.c
index 4704a8d..a852f46 100644 (file)
@@ -271,6 +271,9 @@ static void rxrpc_store_error(struct rxrpc_peer *peer,
                break;
 
        case SO_EE_ORIGIN_ICMP6:
+               if (err == EACCES)
+                       err = EHOSTUNREACH;
+               /* Fall through */
        default:
                _proto("Rx Received error report { orig=%u }", ee->ee_origin);
                break;