Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218528
b: refs/heads/master
c: f4a2589
h: refs/heads/master
v: v3
  • Loading branch information
Evgeny Kuznetsov authored and Linus Torvalds committed Oct 28, 2010
1 parent 7fc77a1 commit 41be3fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 32a8cf235e2f192eb002755076994525cdbaa35a
refs/heads/master: f4a2589feaef0a9b737a3e582b37ee96695bb25f
2 changes: 2 additions & 0 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1922,6 +1922,8 @@ static int cgroup_release_agent_write(struct cgroup *cgrp, struct cftype *cft,
const char *buffer)
{
BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX);
if (strlen(buffer) >= PATH_MAX)
return -EINVAL;
if (!cgroup_lock_live_group(cgrp))
return -ENODEV;
strcpy(cgrp->root->release_agent_path, buffer);
Expand Down

0 comments on commit 41be3fd

Please sign in to comment.