Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133627
b: refs/heads/master
c: 71d98b4
h: refs/heads/master
i:
  133625: 199cb45
  133623: 6ad4236
v: v3
  • Loading branch information
Jack Morgenstein authored and Roland Dreier committed Feb 17, 2009
1 parent f8285f3 commit dbdb306
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e538052746d570c874650a24eed89fca6e4c93dc
refs/heads/master: 71d98b4628ee869d62814f6d8607d76cab4b9ec5
2 changes: 1 addition & 1 deletion trunk/drivers/infiniband/hw/ipath/ipath_init_chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ static void init_shadow_tids(struct ipath_devdata *dd)
if (!addrs) {
ipath_dev_err(dd, "failed to allocate shadow dma handle "
"array, no expected sends!\n");
vfree(pages);
vfree(dd->ipath_pageshadow);
dd->ipath_pageshadow = NULL;
return;
}
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/infiniband/hw/ipath/ipath_user_pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,20 +209,20 @@ void ipath_release_user_pages_on_close(struct page **p, size_t num_pages)

mm = get_task_mm(current);
if (!mm)
return;
goto bail;

work = kmalloc(sizeof(*work), GFP_KERNEL);
if (!work)
goto bail_mm;

goto bail;

INIT_WORK(&work->work, user_pages_account);
work->mm = mm;
work->num_pages = num_pages;

schedule_work(&work->work);
return;

bail_mm:
mmput(mm);
bail:
return;
}
9 changes: 7 additions & 2 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,16 +660,21 @@ static void unicast_arp_send(struct sk_buff *skb, struct net_device *dev,

path = __path_find(dev, phdr->hwaddr + 4);
if (!path || !path->valid) {
if (!path)
int new_path = 0;

if (!path) {
path = path_rec_create(dev, phdr->hwaddr + 4);
new_path = 1;
}
if (path) {
/* put pseudoheader back on for next time */
skb_push(skb, sizeof *phdr);
__skb_queue_tail(&path->queue, skb);

if (!path->query && path_rec_start(dev, path)) {
spin_unlock_irqrestore(&priv->lock, flags);
path_free(dev, path);
if (new_path)
path_free(dev, path);
return;
} else
__path_add(dev, path);
Expand Down

0 comments on commit dbdb306

Please sign in to comment.