Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262333
b: refs/heads/master
c: 298507d
h: refs/heads/master
i:
  262331: 22a8499
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Linus Torvalds committed Aug 4, 2011
1 parent ace5170 commit 8773eaa
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 33a30ed4bdccd95ed84a1a20c1fef8ac89788ce5
refs/heads/master: 298507d4d2cff2248e84afcf646b697301294442
3 changes: 3 additions & 0 deletions trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ void exit_shm(struct task_struct *task)
{
struct ipc_namespace *ns = task->nsproxy->ipc_ns;

if (shm_ids(ns).in_use == 0)
return;

/* Destroy all already created segments, but not mapped yet */
down_write(&shm_ids(ns).rw_mutex);
if (shm_ids(ns).in_use)
Expand Down

0 comments on commit 8773eaa

Please sign in to comment.