|
@@ -150,7 +150,7 @@ struct ib_umem *ib_umem_get(struct ib_ucontext *context, unsigned long addr,
|
|
|
ret = 0;
|
|
|
while (npages) {
|
|
|
ret = get_user_pages(current, current->mm, cur_base,
|
|
|
- min_t(int, npages,
|
|
|
+ min_t(unsigned long, npages,
|
|
|
PAGE_SIZE / sizeof (struct page *)),
|
|
|
1, !umem->writable, page_list, vma_list);
|
|
|
|