Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9054466e authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

starpu/tags: make sure we don't dereference NULL pointer

parent 07b6c682
No related branches found
No related tags found
1 merge request!374Fix bugs reported by Sonarqube
......@@ -165,6 +165,14 @@ chameleon_starpu_tag_release( int64_t min )
cst_range_t *current = cst_first;
assert( cst_first != NULL ); /* At least one range must be registered */
if ( current == NULL ) {
#if defined(CHAMELEON_DEBUG_STARPU)
fprintf( stderr, "chameleon_starpu_tag: FAILED to release [%ld,...]\n",
min );
#endif
return;
}
while ( (current != NULL) && (current->min < min) ) {
prev = current;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment