Creating a cloned interface could return ENOMEM due to temporary
authorbluhm <bluhm@openbsd.org>
Tue, 9 Jan 2018 15:24:24 +0000 (15:24 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 9 Jan 2018 15:24:24 +0000 (15:24 +0000)
commit809d3a3e7e4e2167dd03620b8ad7b0a18aaebb7d
treefd61749ec7d0159a6566d3b0d9a130710b6a29e5
parent69dc22ffae4c8d27b6c8f9bd485b31751844294b
Creating a cloned interface could return ENOMEM due to temporary
memory shortage.  As it is invoked from a system call, it should
not fail and wait instead.
OK visa@ mpi@
20 files changed:
sys/net/if_bridge.c
sys/net/if_etherip.c
sys/net/if_gif.c
sys/net/if_gre.c
sys/net/if_loop.c
sys/net/if_mpe.c
sys/net/if_mpw.c
sys/net/if_pair.c
sys/net/if_pflog.c
sys/net/if_pflow.c
sys/net/if_pfsync.c
sys/net/if_ppp.c
sys/net/if_pppoe.c
sys/net/if_switch.c
sys/net/if_trunk.c
sys/net/if_tun.c
sys/net/if_vether.c
sys/net/if_vlan.c
sys/net/if_vxlan.c
sys/netinet/ip_carp.c