Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/slurmctld/job_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -12225,8 +12225,10 @@ static bool _valid_license_job_expansion(job_record_t *job_ptr1,
xstrchr(job_ptr2->licenses, '|'))
return false;

if (list_find_first_ro(job_ptr1->license_list, _find_hres, NULL) ||
list_find_first_ro(job_ptr2->license_list, _find_hres, NULL))
if ((job_ptr1->license_list &&
list_find_first_ro(job_ptr1->license_list, _find_hres, NULL)) ||
(job_ptr2->license_list &&
list_find_first_ro(job_ptr2->license_list, _find_hres, NULL)))
return false;

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/slurmctld/node_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4370,7 +4370,7 @@ extern void node_mgr_make_node_blocked(job_record_t *job_ptr, bool set)
if (!IS_JOB_WHOLE_TOPO(job_ptr))
return;

if (!job_ptr->job_resrcs || !job_ptr->job_resrcs->node_bitmap)
if (!job_ptr->job_resrcs || !job_ptr->job_resrcs->node_bitmap || !job_ptr->part_ptr)
return;

tmp_bitmap = bit_copy(job_ptr->job_resrcs->node_bitmap);
Expand Down