Skip to content
Snippets Groups Projects
Commit 61bd6a43 authored by Morris Jette's avatar Morris Jette
Browse files

patches for cgroup devices support

bug correction that I found when using sbatch,
0001_bull_cgroup_devices_correct_memory_leak_with_sbatch-2.3.0-0.pre7.patch
Patch from Yiannis.Georgiou, Bull.
parent 738e833e
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,7 @@ extern int task_cgroup_devices_create(slurmd_job_t *job)
int *gres_bit_alloc = NULL;
int *gres_step_bit_alloc = NULL;
int *gres_count;
int *gres_count = NULL;
xcgroup_t devices_cg;
uint32_t jobid = job->jobid;
......@@ -237,7 +237,7 @@ extern int task_cgroup_devices_create(slurmd_job_t *job)
*/
_calc_device_major(dev_path,gres_cgroup,gres_conf_lines);
gres_count = (int*)xmalloc ( sizeof (int) );
gres_count = xmalloc ( sizeof (int) * (gres_conf_lines) );
/*
* calculate the number of gres.conf records for each gres name
......
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