/* * test-all.c: Try to build all the main testcases at once. * * A well-configured system will have all the prereqs installed, so we can speed * up auto-detection on such systems. */ /* * Quirk: Python and Perl headers cannot be in arbitrary places, so keep * these 3 testcases at the top: */ #define main main_test_libpython # include "test-libpython.c" #undef main #define main main_test_libpython_version # include "test-libpython-version.c" #undef main #define main main_test_libperl # include "test-libperl.c" #undef main #define main main_test_hello # include "test-hello.c" #undef main #define main main_test_libelf # include "test-libelf.c" #undef main #define main main_test_libelf_mmap # include "test-libelf-mmap.c" #undef main #define main main_test_glibc # include "test-glibc.c" #undef main #define main main_test_dwarf # include "test-dwarf.c" #undef main #define main main_test_dwarf_getlocations # include "test-dwarf_getlocations.c" #undef main #define main main_test_libelf_getphdrnum # include "test-libelf-getphdrnum.c" #undef main #define main main_test_libelf_gelf_getnote # include "test-libelf-gelf_getnote.c" #undef main #define main main_test_libelf_getshdrstrndx # include "test-libelf-getshdrstrndx.c" #undef main #define main main_test_libunwind # include "test-libunwind.c" #undef main #define main main_test_libaudit # include "test-libaudit.c" #undef main #define main main_test_libslang # include "test-libslang.c" #undef main #define main main_test_gtk2 # include "test-gtk2.c" #undef main #define main main_test_gtk2_infobar # include "test-gtk2-infobar.c" #undef main #define main main_test_libbfd # include "test-libbfd.c" #undef main #define main main_test_backtrace # include "test-backtrace.c" #undef main #define main main_test_libnuma # include "test-libnuma.c" #undef main #define main main_test_numa_num_possible_cpus # include "test-numa_num_possible_cpus.c" #undef main #define main main_test_timerfd # include "test-timerfd.c" #undef main #define main main_test_stackprotector_all # include "test-stackprotector-all.c" #undef main #define main main_test_libdw_dwarf_unwind # include "test-libdw-dwarf-unwind.c" #undef main #define main main_test_sync_compare_and_swap # include "test-sync-compare-and-swap.c" #undef main #define main main_test_zlib # include "test-zlib.c" #undef main #define main main_test_pthread_attr_setaffinity_np # include "test-pthread-attr-setaffinity-np.c" #undef main # if 0 /* * Disable libbabeltrace check for test-all, because the requested * library version is not released yet in most distributions. Will * reenable later. */ #define main main_test_libbabeltrace # include "test-libbabeltrace.c" #undef main #endif #define main main_test_lzma # include "test-lzma.c" #undef main #define main main_test_get_cpuid # include "test-get_cpuid.c" #undef main #define main main_test_bpf # include "test-bpf.c" #undef main #define main main_test_libcrypto # include "test-libcrypto.c" #undef main #define main main_test_sdt # include "test-sdt.c" #undef main int main(int argc, char *argv[]) { main_test_libpython(); main_test_libpython_version(); main_test_libperl(); main_test_hello(); main_test_libelf(); main_test_libelf_mmap(); main_test_glibc(); main_test_dwarf(); main_test_dwarf_getlocations(); main_test_libelf_getphdrnum(); main_test_libelf_gelf_getnote(); main_test_libelf_getshdrstrndx(); main_test_libunwind(); main_test_libaudit(); main_test_libslang(); main_test_gtk2(argc, argv); main_test_gtk2_infobar(argc, argv); main_test_libbfd(); main_test_backtrace(); main_test_libnuma(); main_test_numa_num_possible_cpus(); main_test_timerfd(); main_test_stackprotector_all(); main_test_libdw_dwarf_unwind(); main_test_sync_compare_and_swap(argc, argv); main_test_zlib(); main_test_pthread_attr_setaffinity_np(); main_test_lzma(); main_test_get_cpuid(); main_test_bpf(); main_test_libcrypto(); main_test_sdt(); return 0; } /option>space:mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-01-27 15:00:45 -0600
committerBjorn Helgaas <bhelgaas@google.com>2017-01-27 15:00:45 -0600
commit030305d69fc6963c16003f50d7e8d74b02d0a143 (patch)
tree363a4e34d199178769b7e7eeb26ea2620a55847b /net/irda/ircomm/ircomm_param.c
parent4d191b1b63c209e37bf27938ef365244d3c41084 (diff)
PCI/ASPM: Handle PCI-to-PCIe bridges as roots of PCIe hierarchies
In a struct pcie_link_state, link->root points to the pcie_link_state of the root of the PCIe hierarchy. For the topmost link, this points to itself (link->root = link). For others, we copy the pointer from the parent (link->root = link->parent->root). Previously we recognized that Root Ports originated PCIe hierarchies, but we treated PCI/PCI-X to PCIe Bridges as being in the middle of the hierarchy, and when we tried to copy the pointer from link->parent->root, there was no parent, and we dereferenced a NULL pointer: BUG: unable to handle kernel NULL pointer dereference at 0000000000000090 IP: [<ffffffff9e424350>] pcie_aspm_init_link_state+0x170/0x820 Recognize that PCI/PCI-X to PCIe Bridges originate PCIe hierarchies just like Root Ports do, so link->root for these devices should also point to itself. Fixes: 51ebfc92b72b ("PCI: Enumerate switches below PCI-to-PCIe bridges") Link: https://bugzilla.kernel.org/show_bug.cgi?id=193411 Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1022181 Tested-by: lists@ssl-mail.com Tested-by: Jayachandran C. <jnair@caviumnetworks.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> CC: stable@vger.kernel.org # v4.2+
Diffstat (limited to 'net/irda/ircomm/ircomm_param.c')