File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -783,7 +783,7 @@ void cgroup1_release_agent(struct work_struct *work)
783783
784784 pathbuf = kmalloc (PATH_MAX , GFP_KERNEL );
785785 agentbuf = kstrdup (cgrp -> root -> release_agent_path , GFP_KERNEL );
786- if (!pathbuf || !agentbuf )
786+ if (!pathbuf || !agentbuf || ! strlen ( agentbuf ) )
787787 goto out ;
788788
789789 spin_lock_irq (& css_set_lock );
Original file line number Diff line number Diff line change @@ -3538,21 +3538,21 @@ static int cpu_stat_show(struct seq_file *seq, void *v)
35383538static int cgroup_io_pressure_show (struct seq_file * seq , void * v )
35393539{
35403540 struct cgroup * cgrp = seq_css (seq )-> cgroup ;
3541- struct psi_group * psi = cgroup_id (cgrp ) == 1 ? & psi_system : & cgrp -> psi ;
3541+ struct psi_group * psi = cgroup_ino (cgrp ) == 1 ? & psi_system : & cgrp -> psi ;
35423542
35433543 return psi_show (seq , psi , PSI_IO );
35443544}
35453545static int cgroup_memory_pressure_show (struct seq_file * seq , void * v )
35463546{
35473547 struct cgroup * cgrp = seq_css (seq )-> cgroup ;
3548- struct psi_group * psi = cgroup_id (cgrp ) == 1 ? & psi_system : & cgrp -> psi ;
3548+ struct psi_group * psi = cgroup_ino (cgrp ) == 1 ? & psi_system : & cgrp -> psi ;
35493549
35503550 return psi_show (seq , psi , PSI_MEM );
35513551}
35523552static int cgroup_cpu_pressure_show (struct seq_file * seq , void * v )
35533553{
35543554 struct cgroup * cgrp = seq_css (seq )-> cgroup ;
3555- struct psi_group * psi = cgroup_id (cgrp ) == 1 ? & psi_system : & cgrp -> psi ;
3555+ struct psi_group * psi = cgroup_ino (cgrp ) == 1 ? & psi_system : & cgrp -> psi ;
35563556
35573557 return psi_show (seq , psi , PSI_CPU );
35583558}
You can’t perform that action at this time.
0 commit comments