Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213809
b: refs/heads/master
c: 8321779
h: refs/heads/master
i:
  213807: f8d88d4
v: v3
  • Loading branch information
Roopa Prabhu authored and David S. Miller committed Aug 17, 2010
1 parent 807b84e commit a229666
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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: ce16cc02f9fe21d4e42116305e5ea9d12e51635d
refs/heads/master: 832177901a61aeda1f2122e323c39881ec84af65
6 changes: 4 additions & 2 deletions trunk/drivers/net/enic/vnic_rq.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ void vnic_rq_free(struct vnic_rq *rq)
vnic_dev_free_desc_ring(vdev, &rq->ring);

for (i = 0; i < VNIC_RQ_BUF_BLKS_MAX; i++) {
kfree(rq->bufs[i]);
rq->bufs[i] = NULL;
if (rq->bufs[i]) {
kfree(rq->bufs[i]);
rq->bufs[i] = NULL;
}
}

rq->ctrl = NULL;
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/net/enic/vnic_wq.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ void vnic_wq_free(struct vnic_wq *wq)
vnic_dev_free_desc_ring(vdev, &wq->ring);

for (i = 0; i < VNIC_WQ_BUF_BLKS_MAX; i++) {
kfree(wq->bufs[i]);
wq->bufs[i] = NULL;
if (wq->bufs[i]) {
kfree(wq->bufs[i]);
wq->bufs[i] = NULL;
}
}

wq->ctrl = NULL;
Expand Down

0 comments on commit a229666

Please sign in to comment.