diff options
Diffstat (limited to 'drivers/infiniband/core/ucm.c')
| -rw-r--r-- | drivers/infiniband/core/ucm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c index 3e6a8ff6d76c..b25675faaaf5 100644 --- a/drivers/infiniband/core/ucm.c +++ b/drivers/infiniband/core/ucm.c | |||
| @@ -45,6 +45,7 @@ | |||
| 45 | #include <linux/cdev.h> | 45 | #include <linux/cdev.h> |
| 46 | #include <linux/idr.h> | 46 | #include <linux/idr.h> |
| 47 | #include <linux/mutex.h> | 47 | #include <linux/mutex.h> |
| 48 | #include <linux/smp_lock.h> | ||
| 48 | 49 | ||
| 49 | #include <asm/uaccess.h> | 50 | #include <asm/uaccess.h> |
| 50 | 51 | ||
| @@ -1155,11 +1156,11 @@ static unsigned int ib_ucm_poll(struct file *filp, | |||
| 1155 | return mask; | 1156 | return mask; |
| 1156 | } | 1157 | } |
| 1157 | 1158 | ||
| 1158 | /* No BKL needed here: no global resources used */ | ||
| 1159 | static int ib_ucm_open(struct inode *inode, struct file *filp) | 1159 | static int ib_ucm_open(struct inode *inode, struct file *filp) |
| 1160 | { | 1160 | { |
| 1161 | struct ib_ucm_file *file; | 1161 | struct ib_ucm_file *file; |
| 1162 | 1162 | ||
| 1163 | cycle_kernel_lock(); | ||
| 1163 | file = kmalloc(sizeof(*file), GFP_KERNEL); | 1164 | file = kmalloc(sizeof(*file), GFP_KERNEL); |
| 1164 | if (!file) | 1165 | if (!file) |
| 1165 | return -ENOMEM; | 1166 | return -ENOMEM; |
