1
1
openmpi/ompi/mca/bcol/ptpcoll
Nathan Hjelm 3540b65f7d bcol: fix coverity issues
Fix CID 1269976 (#1 of 1): Unused value (UNUSED_VALUE):
Fix CID 1269979 (#1 of 1): Unused value (UNUSED_VALUE):

Removed unused variables k_temp1 and k_temp2.

Fix CID 1269981 (#1 of 1): Unused value (UNUSED_VALUE):
Fix CID 1269974 (#1 of 1): Unused value (UNUSED_VALUE):

Removed gotos and use the matched flags to decide whether to return.

Fix CID 715755 (#1 of 1): Dereference null return value (NULL_RETURNS):

This was also a leak. The items on cs->ctl_structures are allocated using OBJ_NEW so they mist be released using OBJ_RELEASE not OBJ_DESTRUCT. Replaced the loop with OPAL_LIST_DESTRUCT().

Fix CID 715776 (#1 of 1): Dereference before null check (REVERSE_INULL):

Rework error path to remove REVERSE_INULL. Also added a free to an error path where it was missing.

Fix CID 1196603 (#1 of 1): Bad bit shift operation (BAD_SHIFT):
Fix CID 1196601 (#1 of 1): Bad bit shift operation (BAD_SHIFT):

Both of these are false positives but it is still worthwhile to fix so they no longer appear. The loop conditional has been updated to use radix_mask_pow instead of radix_mask to quiet these issues.

Fix CID 1269804 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS):

In general close (-1) is safe but coverity doesn’t like it. Reworked the error path for open to not try to close (-1).

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2016-03-18 10:59:46 -06:00
..
bcol_ptpcoll_allgather.c Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_ptpcoll_allreduce.c Cleanup the warnings from the ompi layer when compiling optimized under Mac OSX 2015-12-17 17:39:15 -08:00
bcol_ptpcoll_allreduce.h Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_ptpcoll_barrier.c Update code base to use the new opal_free_list_t 2015-02-24 10:05:45 -07:00
bcol_ptpcoll_bcast.c bcol: fix coverity issues 2016-03-18 10:59:46 -06:00
bcol_ptpcoll_bcast.h bcol: fix coverity issues 2016-03-18 10:59:46 -06:00
bcol_ptpcoll_component.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_ptpcoll_fanin.c Adding Hierarchical Collectives project to the Open MPI trunk. 2012-08-16 19:11:35 +00:00
bcol_ptpcoll_fanout.c Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_ptpcoll_mca.c coll: trivial spelling fix 2015-02-27 18:20:17 -08:00
bcol_ptpcoll_mca.h Adding Hierarchical Collectives project to the Open MPI trunk. 2012-08-16 19:11:35 +00:00
bcol_ptpcoll_module.c fix misc memory leaks 2015-03-05 13:58:05 +09:00
bcol_ptpcoll_reduce.c Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_ptpcoll_reduce.h coll/ml: add support for blocking and non-blocking allreduce, reduce, and 2014-01-22 15:39:19 +00:00
bcol_ptpcoll_utils.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_ptpcoll_utils.h Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_ptpcoll.h Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
Makefile.am Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
owner.txt ownership: update ownership files 2015-06-25 10:04:42 -06:00