-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #691 from bratpiorka/rrudnick_fix_hwloc_cov
fix coverity issues in hwloc
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/hwloc/topology-x86.c b/hwloc/topology-x86.c | ||
index 7aabd168f..b01e44557 100644 | ||
--- a/hwloc/topology-x86.c | ||
+++ b/hwloc/topology-x86.c | ||
@@ -1375,6 +1375,9 @@ look_procs(struct hwloc_backend *backend, struct procinfo *infos, unsigned long | ||
hwloc_bitmap_t set = NULL; | ||
unsigned i; | ||
|
||
+ if(!get_cpubind||!set_cpubind) | ||
+ return -1; | ||
+ | ||
if (!data->src_cpuiddump_path) { | ||
orig_cpuset = hwloc_bitmap_alloc(); | ||
if (get_cpubind(topology, orig_cpuset, HWLOC_CPUBIND_STRICT)) { |