Revision e2e004acc7cbe3c531e752a270a74e95cde3ea48 authored by Ross Lagerwall on 08 February 2017, 10:57:37 UTC, committed by David S. Miller on 09 February 2017, 21:43:01 UTC
This fixes a crash when running out of grant refs when creating many queues across many netdevs. * If creating queues fails (i.e. there are no grant refs available), call xenbus_dev_fatal() to ensure that the xenbus device is set to the closed state. * If no queues are created, don't call xennet_disconnect_backend as netdev->real_num_tx_queues will not have been set correctly. * If setup_netfront() fails, ensure that all the queues created are cleaned up, not just those that have been set up. * If any queues were set up and an error occurs, call xennet_destroy_queues() to clean up the napi context. * If any fatal error occurs, unregister and destroy the netdev to avoid leaving around a half setup network device. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1b5805c
File | Mode | Size |
---|---|---|
kasan | ||
Kconfig | -rw-r--r-- | 23.9 KB |
Kconfig.debug | -rw-r--r-- | 3.6 KB |
Makefile | -rw-r--r-- | 3.4 KB |
backing-dev.c | -rw-r--r-- | 26.3 KB |
balloon_compaction.c | -rw-r--r-- | 4.7 KB |
bootmem.c | -rw-r--r-- | 20.8 KB |
cleancache.c | -rw-r--r-- | 9.9 KB |
cma.c | -rw-r--r-- | 12.2 KB |
cma.h | -rw-r--r-- | 515 bytes |
cma_debug.c | -rw-r--r-- | 4.4 KB |
compaction.c | -rw-r--r-- | 56.5 KB |
debug.c | -rw-r--r-- | 4.3 KB |
debug_page_ref.c | -rw-r--r-- | 1.3 KB |
dmapool.c | -rw-r--r-- | 13.8 KB |
early_ioremap.c | -rw-r--r-- | 6.2 KB |
fadvise.c | -rw-r--r-- | 4.3 KB |
failslab.c | -rw-r--r-- | 1.4 KB |
filemap.c | -rw-r--r-- | 79.8 KB |
frame_vector.c | -rw-r--r-- | 6.1 KB |
frontswap.c | -rw-r--r-- | 14.3 KB |
gup.c | -rw-r--r-- | 42.5 KB |
highmem.c | -rw-r--r-- | 11.7 KB |
huge_memory.c | -rw-r--r-- | 65.0 KB |
hugetlb.c | -rw-r--r-- | 123.5 KB |
hugetlb_cgroup.c | -rw-r--r-- | 10.9 KB |
hwpoison-inject.c | -rw-r--r-- | 3.2 KB |
init-mm.c | -rw-r--r-- | 680 bytes |
internal.h | -rw-r--r-- | 15.3 KB |
interval_tree.c | -rw-r--r-- | 3.1 KB |
khugepaged.c | -rw-r--r-- | 48.4 KB |
kmemcheck.c | -rw-r--r-- | 2.9 KB |
kmemleak-test.c | -rw-r--r-- | 3.2 KB |
kmemleak.c | -rw-r--r-- | 56.1 KB |
ksm.c | -rw-r--r-- | 63.5 KB |
list_lru.c | -rw-r--r-- | 12.6 KB |
maccess.c | -rw-r--r-- | 3.0 KB |
madvise.c | -rw-r--r-- | 19.5 KB |
memblock.c | -rw-r--r-- | 49.5 KB |
memcontrol.c | -rw-r--r-- | 154.5 KB |
memory-failure.c | -rw-r--r-- | 49.0 KB |
memory.c | -rw-r--r-- | 112.0 KB |
memory_hotplug.c | -rw-r--r-- | 55.0 KB |
mempolicy.c | -rw-r--r-- | 71.2 KB |
mempool.c | -rw-r--r-- | 13.9 KB |
memtest.c | -rw-r--r-- | 2.7 KB |
migrate.c | -rw-r--r-- | 52.4 KB |
mincore.c | -rw-r--r-- | 6.7 KB |
mlock.c | -rw-r--r-- | 22.6 KB |
mm_init.c | -rw-r--r-- | 4.8 KB |
mmap.c | -rw-r--r-- | 94.7 KB |
mmu_context.c | -rw-r--r-- | 1.3 KB |
mmu_notifier.c | -rw-r--r-- | 11.7 KB |
mmzone.c | -rw-r--r-- | 2.4 KB |
mprotect.c | -rw-r--r-- | 13.4 KB |
mremap.c | -rw-r--r-- | 15.6 KB |
msync.c | -rw-r--r-- | 2.6 KB |
nobootmem.c | -rw-r--r-- | 11.1 KB |
nommu.c | -rw-r--r-- | 48.4 KB |
oom_kill.c | -rw-r--r-- | 28.6 KB |
page-writeback.c | -rw-r--r-- | 84.4 KB |
page_alloc.c | -rw-r--r-- | 203.6 KB |
page_counter.c | -rw-r--r-- | 4.8 KB |
page_ext.c | -rw-r--r-- | 11.4 KB |
page_idle.c | -rw-r--r-- | 5.4 KB |
page_io.c | -rw-r--r-- | 9.4 KB |
page_isolation.c | -rw-r--r-- | 8.4 KB |
page_owner.c | -rw-r--r-- | 14.7 KB |
page_poison.c | -rw-r--r-- | 3.5 KB |
pagewalk.c | -rw-r--r-- | 7.5 KB |
percpu-km.c | -rw-r--r-- | 2.8 KB |
percpu-vm.c | -rw-r--r-- | 10.0 KB |
percpu.c | -rw-r--r-- | 66.4 KB |
pgtable-generic.c | -rw-r--r-- | 4.8 KB |
process_vm_access.c | -rw-r--r-- | 10.1 KB |
quicklist.c | -rw-r--r-- | 2.4 KB |
readahead.c | -rw-r--r-- | 16.1 KB |
rmap.c | -rw-r--r-- | 51.1 KB |
shmem.c | -rw-r--r-- | 106.9 KB |
slab.c | -rw-r--r-- | 110.1 KB |
slab.h | -rw-r--r-- | 13.9 KB |
slab_common.c | -rw-r--r-- | 31.9 KB |
slob.c | -rw-r--r-- | 16.0 KB |
slub.c | -rw-r--r-- | 138.1 KB |
sparse-vmemmap.c | -rw-r--r-- | 7.8 KB |
sparse.c | -rw-r--r-- | 20.8 KB |
swap.c | -rw-r--r-- | 27.0 KB |
swap_cgroup.c | -rw-r--r-- | 4.6 KB |
swap_state.c | -rw-r--r-- | 13.2 KB |
swapfile.c | -rw-r--r-- | 77.5 KB |
truncate.c | -rw-r--r-- | 24.9 KB |
usercopy.c | -rw-r--r-- | 7.7 KB |
userfaultfd.c | -rw-r--r-- | 7.2 KB |
util.c | -rw-r--r-- | 15.9 KB |
vmacache.c | -rw-r--r-- | 3.1 KB |
vmalloc.c | -rw-r--r-- | 68.5 KB |
vmpressure.c | -rw-r--r-- | 12.5 KB |
vmscan.c | -rw-r--r-- | 111.3 KB |
vmstat.c | -rw-r--r-- | 47.2 KB |
workingset.c | -rw-r--r-- | 18.2 KB |
z3fold.c | -rw-r--r-- | 21.3 KB |
zbud.c | -rw-r--r-- | 18.2 KB |
zpool.c | -rw-r--r-- | 10.0 KB |
zsmalloc.c | -rw-r--r-- | 59.5 KB |
zswap.c | -rw-r--r-- | 31.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...