Skip to content

Commit

Permalink
Merge branches 'core', 'ipoib', 'iser', 'mlx4', 'ocrdma' and 'qib' in…
Browse files Browse the repository at this point in the history
…to for-next
  • Loading branch information
Roland Dreier committed Sep 22, 2014
6 parents 87773dd + 68f9d83 + 61aabb3 + 25476b0 + f0c2c22 + 85cbb7c commit 3bdad2d
Show file tree
Hide file tree
Showing 17 changed files with 263 additions and 149 deletions.
4 changes: 4 additions & 0 deletions drivers/infiniband/core/uverbs_marshall.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,9 @@ void ib_copy_path_rec_from_user(struct ib_sa_path_rec *dst,
dst->packet_life_time = src->packet_life_time;
dst->preference = src->preference;
dst->packet_life_time_selector = src->packet_life_time_selector;

memset(dst->smac, 0, sizeof(dst->smac));
memset(dst->dmac, 0, sizeof(dst->dmac));
dst->vlan_id = 0xffff;
}
EXPORT_SYMBOL(ib_copy_path_rec_from_user);
6 changes: 3 additions & 3 deletions drivers/infiniband/hw/ipath/ipath_user_pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void __ipath_release_user_pages(struct page **p, size_t num_pages,

/* call with current->mm->mmap_sem held */
static int __ipath_get_user_pages(unsigned long start_page, size_t num_pages,
struct page **p, struct vm_area_struct **vma)
struct page **p)
{
unsigned long lock_limit;
size_t got;
Expand All @@ -74,7 +74,7 @@ static int __ipath_get_user_pages(unsigned long start_page, size_t num_pages,
ret = get_user_pages(current, current->mm,
start_page + got * PAGE_SIZE,
num_pages - got, 1, 1,
p + got, vma);
p + got, NULL);
if (ret < 0)
goto bail_release;
}
Expand Down Expand Up @@ -165,7 +165,7 @@ int ipath_get_user_pages(unsigned long start_page, size_t num_pages,

down_write(&current->mm->mmap_sem);

ret = __ipath_get_user_pages(start_page, num_pages, p, NULL);
ret = __ipath_get_user_pages(start_page, num_pages, p);

up_write(&current->mm->mmap_sem);

Expand Down
Loading

0 comments on commit 3bdad2d

Please sign in to comment.