From 9a36e5d213a1e88e8e6a2e015c1f676c4977ab33 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Thu, 21 Sep 2017 09:24:16 +0900 Subject: [PATCH] hfi1/user_exp_rcv/setup: increment phys appropriately Old code was always registering the same section with different size, instead of properly covering the requested map --- kernel/user_exp_rcv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/user_exp_rcv.c b/kernel/user_exp_rcv.c index c00eaf47..adb95678 100644 --- a/kernel/user_exp_rcv.c +++ b/kernel/user_exp_rcv.c @@ -193,8 +193,9 @@ int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd, struct hfi1_tid_info *tinf else tid_group_add_tail(grp, &uctxt->tid_used_list); unlock: - spin_unlock(&fd->tid_lock); + spin_unlock(&fd->tid_lock); + phys += 1 << (order+12); if (ret < 0) break; }