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
This commit is contained in:
Dominique Martinet
2017-09-21 09:24:16 +09:00
committed by Balazs Gerofi
parent 4816f27639
commit 9a36e5d213

View File

@ -195,6 +195,7 @@ int hfi1_user_exp_rcv_setup(struct hfi1_filedata *fd, struct hfi1_tid_info *tinf
unlock: unlock:
spin_unlock(&fd->tid_lock); spin_unlock(&fd->tid_lock);
phys += 1 << (order+12);
if (ret < 0) if (ret < 0)
break; break;
} }