Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262332
b: refs/heads/master
c: 33a30ed
h: refs/heads/master
v: v3
  • Loading branch information
Vasiliy Kulikov authored and Linus Torvalds committed Aug 4, 2011
1 parent 22a8499 commit ace5170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 206506ccf04b6790d11553a0c8595d1bf65790fe
refs/heads/master: 33a30ed4bdccd95ed84a1a20c1fef8ac89788ce5
4 changes: 2 additions & 2 deletions trunk/ipc/shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ static int shm_try_destroy_orphaned(int id, void *p, void *data)
void shm_destroy_orphaned(struct ipc_namespace *ns)
{
down_write(&shm_ids(ns).rw_mutex);
if (&shm_ids(ns).in_use)
if (shm_ids(ns).in_use)
idr_for_each(&shm_ids(ns).ipcs_idr, &shm_try_destroy_orphaned, ns);
up_write(&shm_ids(ns).rw_mutex);
}
Expand All @@ -306,7 +306,7 @@ void exit_shm(struct task_struct *task)

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

0 comments on commit ace5170

Please sign in to comment.