Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37842
b: refs/heads/master
c: 2453a30
h: refs/heads/master
v: v3
  • Loading branch information
Matt Helsley authored and Linus Torvalds committed Oct 2, 2006
1 parent 76ace0c commit 7eb9f91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 5d124e99c2fee1c8f3020ecb0dff8d5617ee7991
refs/heads/master: 2453a3062d36f39f01302f9f1ad18e7a0c54fe38
5 changes: 1 addition & 4 deletions trunk/ipc/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,15 +1003,12 @@ static inline void unlock_semundo(void)
static inline int get_undo_list(struct sem_undo_list **undo_listp)
{
struct sem_undo_list *undo_list;
int size;

undo_list = current->sysvsem.undo_list;
if (!undo_list) {
size = sizeof(struct sem_undo_list);
undo_list = (struct sem_undo_list *) kmalloc(size, GFP_KERNEL);
undo_list = kzalloc(sizeof(*undo_list), GFP_KERNEL);
if (undo_list == NULL)
return -ENOMEM;
memset(undo_list, 0, size);
spin_lock_init(&undo_list->lock);
atomic_set(&undo_list->refcnt, 1);
current->sysvsem.undo_list = undo_list;
Expand Down

0 comments on commit 7eb9f91

Please sign in to comment.