projects
/
platform
/
kernel
/
linux-exynos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IB/hfi1: Fix user context tail allocation for DMA_RTAIL
[platform/kernel/linux-exynos.git]
/
drivers
/
infiniband
/
hw
/
hfi1
/
file_ops.c
diff --git
a/drivers/infiniband/hw/hfi1/file_ops.c
b/drivers/infiniband/hw/hfi1/file_ops.c
index
cb6ff9d
..
9abc5a9
100644
(file)
--- a/
drivers/infiniband/hw/hfi1/file_ops.c
+++ b/
drivers/infiniband/hw/hfi1/file_ops.c
@@
-622,7
+622,7
@@
static int hfi1_file_mmap(struct file *fp, struct vm_area_struct *vma)
ret = -EINVAL;
goto done;
}
- if (
flags & VM_WRITE
) {
+ if (
(flags & VM_WRITE) || !uctxt->rcvhdrtail_kvaddr
) {
ret = -EPERM;
goto done;
}