Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290436
b: refs/heads/master
c: 1cfafab
h: refs/heads/master
v: v3
  • Loading branch information
Sathya Perla authored and David S. Miller committed Feb 24, 2012
1 parent 46b5d4c commit a604531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 0ae57bb3df562e57ac89ad7bc524b6f2e83235f9
refs/heads/master: 1cfafab965198bc0d9cb794af5065d0797969727
6 changes: 4 additions & 2 deletions trunk/drivers/net/ethernet/emulex/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ static inline bool be_is_mc(struct be_adapter *adapter) {
static void be_queue_free(struct be_adapter *adapter, struct be_queue_info *q)
{
struct be_dma_mem *mem = &q->dma_mem;
if (mem->va)
if (mem->va) {
dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va,
mem->dma);
mem->va = NULL;
}
}

static int be_queue_alloc(struct be_adapter *adapter, struct be_queue_info *q,
Expand Down Expand Up @@ -1660,7 +1662,7 @@ static int be_evt_queues_create(struct be_adapter *adapter)
if (rc)
return rc;
}
return rc;
return 0;
}

static void be_mcc_queues_destroy(struct be_adapter *adapter)
Expand Down

0 comments on commit a604531

Please sign in to comment.