1
1
openmpi/ompi/mca/bcol/basesmuma
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_basesmuma_allgather.c bcol/basesmuma: fix broken allgather algorithm 2014-04-16 22:43:52 +00:00
bcol_basesmuma_allreduce.c bcol basesmuma allreduce: remove redundant assignment 2015-02-24 15:24:10 -05:00
bcol_basesmuma_bcast_prime.c Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_basesmuma_bcast.c coll/ml: cleanup tabs, indentation, and trailing whitespace in 2014-03-21 21:54:48 +00:00
bcol_basesmuma_buf_mgmt.c Cleanup the warnings from the ompi layer when compiling optimized under Mac OSX 2015-12-17 17:39:15 -08:00
bcol_basesmuma_component.c bcol: fix coverity issues 2016-03-18 10:59:46 -06:00
bcol_basesmuma_fanin.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_basesmuma_fanout.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_basesmuma_gather.c Addendum to r31096. Up basesmuma algorithm limits to 1M. 2014-03-18 21:25:49 +00:00
bcol_basesmuma_lmsg_bcast.c Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_basesmuma_lmsg_bcast.h Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_basesmuma_lmsg_knomial_bcast.c Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_basesmuma_mem_mgmt.c bcol/basesmuma: fix remaining memory leaks in basesmuma 2014-05-27 18:40:41 +00:00
bcol_basesmuma_module.c bcol/basesmuma: fix misc memory leak 2015-03-09 17:22:25 +09:00
bcol_basesmuma_progress.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_basesmuma_rd_barrier.c Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_basesmuma_rd_nb_barrier.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_basesmuma_reduce.c Addendum to r31096. Up basesmuma algorithm limits to 1M. 2014-03-18 21:25:49 +00:00
bcol_basesmuma_reduce.h Fixing broken dependency between ML/BCOLS 2014-02-07 19:15:45 +00:00
bcol_basesmuma_rk_barrier.c bcol: fix coverity issues 2016-03-18 10:59:46 -06:00
bcol_basesmuma_setup.c George did the work and deserves all the credit for it. Ralph did the merge, and deserves whatever blame results from errors in it :-) 2014-07-26 00:47:28 +00:00
bcol_basesmuma_smcm.c bcol: fix coverity issues 2016-03-18 10:59:46 -06:00
bcol_basesmuma_smcm.h Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_basesmuma_utils.c Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_basesmuma_utils.h Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
bcol_basesmuma.h MCA: Add the project/project version to the MCA base component 2015-03-27 10:59:04 -06: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