Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100352
b: refs/heads/master
c: 6b0ee36
h: refs/heads/master
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jun 20, 2008
1 parent 8a46db1 commit 7bdb219
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: a9c4e8f74ba26f10cf78fed7c5b863ea50988856
refs/heads/master: 6b0ee363b294c3724224909dcb0b80f7dac3dfd6
3 changes: 3 additions & 0 deletions trunk/drivers/infiniband/core/ucma.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/miscdevice.h>
#include <linux/smp_lock.h>

#include <rdma/rdma_user_cm.h>
#include <rdma/ib_marshall.h>
Expand Down Expand Up @@ -1156,13 +1157,15 @@ static int ucma_open(struct inode *inode, struct file *filp)
if (!file)
return -ENOMEM;

lock_kernel();
INIT_LIST_HEAD(&file->event_list);
INIT_LIST_HEAD(&file->ctx_list);
init_waitqueue_head(&file->poll_wait);
mutex_init(&file->mut);

filp->private_data = file;
file->filp = filp;
unlock_kernel();
return 0;
}

Expand Down

0 comments on commit 7bdb219

Please sign in to comment.