mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
cgroup: Merge branch 'for-3.13-fixes' into for-3.14
Pull to receive e605b36575 ("cgroup: fix cgroup_subsys_state leak
for seq_files") as for-3.14 is scheduled to have a lot of changes
which depend on it.
Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
commit
c729b11edf
2 changed files with 10 additions and 3 deletions
|
|
@ -166,6 +166,7 @@ static void cgroup_destroy_css_killed(struct cgroup *cgrp);
|
|||
static int cgroup_destroy_locked(struct cgroup *cgrp);
|
||||
static int cgroup_addrm_files(struct cgroup *cgrp, struct cftype cfts[],
|
||||
bool is_add);
|
||||
static int cgroup_file_release(struct inode *inode, struct file *file);
|
||||
|
||||
/**
|
||||
* cgroup_css - obtain a cgroup's css for the specified subsystem
|
||||
|
|
@ -2394,7 +2395,7 @@ static const struct file_operations cgroup_seqfile_operations = {
|
|||
.read = seq_read,
|
||||
.write = cgroup_file_write,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
.release = cgroup_file_release,
|
||||
};
|
||||
|
||||
static int cgroup_file_open(struct inode *inode, struct file *file)
|
||||
|
|
@ -2455,6 +2456,8 @@ static int cgroup_file_release(struct inode *inode, struct file *file)
|
|||
ret = cft->release(inode, file);
|
||||
if (css->ss)
|
||||
css_put(css);
|
||||
if (file->f_op == &cgroup_seqfile_operations)
|
||||
single_release(inode, file);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue