git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: thunderx: set tso_hdrs pointer to NULL in nicvf_free_snd_queue
[sfrench/cifs-2.6.git]
/
drivers
/
net
/
ethernet
/
cavium
/
thunder
/
nicvf_queues.c
diff --git
a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c
b/drivers/net/ethernet/cavium/thunder/nicvf_queues.c
index 187a249ff2d1d2fd4201a4e74b9459cbeb3a4b52..fcaf18fa39048b5b83646a7db8e95fd484e27a1f 100644
(file)
--- a/
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
+++ b/
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
@@
-585,10
+585,12
@@
static void nicvf_free_snd_queue(struct nicvf *nic, struct snd_queue *sq)
if (!sq->dmem.base)
return;
- if (sq->tso_hdrs)
+ if (sq->tso_hdrs)
{
dma_free_coherent(&nic->pdev->dev,
sq->dmem.q_len * TSO_HEADER_SIZE,
sq->tso_hdrs, sq->tso_hdrs_phys);
+ sq->tso_hdrs = NULL;
+ }
/* Free pending skbs in the queue */
smp_rmb();