/* * Copyright 2014, Michael Ellerman, IBM Corp. * Licensed under GPLv2. */ #ifndef __SELFTESTS_POWERPC_PMU_LIB_H #define __SELFTESTS_POWERPC_PMU_LIB_H #include #include #include #include union pipe { struct { int read_fd; int write_fd; }; int fds[2]; }; extern int bind_to_cpu(int cpu); extern int kill_child_and_wait(pid_t child_pid); extern int wait_for_child(pid_t child_pid); extern int sync_with_child(union pipe read_pipe, union pipe write_pipe); extern int wait_for_parent(union pipe read_pipe); extern int notify_parent(union pipe write_pipe); extern int notify_parent_of_error(union pipe write_pipe); extern pid_t eat_cpu(int (test_function)(void)); extern bool require_paranoia_below(int level); struct addr_range { uint64_t first, last; }; extern struct addr_range libc, vdso; int parse_proc_maps(void); #endif /* __SELFTESTS_POWERPC_PMU_LIB_H */ ype='hidden' name='id' value='c2e27e16f2411155b906db201b7e478144034ffe'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-10-20 15:25:00 +0200
committerLuca Coelho <luciano.coelho@intel.com>2017-01-26 09:38:55 +0200
commitc2e27e16f2411155b906db201b7e478144034ffe (patch)
tree050af201cbf4ccba014fc62add9dc98c3903a43a /drivers
parent5bdaa0ef77065e07be5443b3cea5224ac72c9ac0 (diff)
iwlwifi: mvm: properly check for transport data in dump
When copying from vmalloc'ed memory to the SG list, don't crash if the transport didn't provide any data. Fixes: 7e62a699aafb ("iwlwifi: mvm: use dev_coredumpsg()") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers')