summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c
index c152e7a..3a73778 100644
--- a/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c
+++ b/sys/dev/netfpga10g/nf10bmac/if_nf10bmac.c
@@ -229,7 +229,7 @@ nf10bmac_tx_locked(struct nf10bmac_softc *sc, struct mbuf *m)
int sl;
if (l == (ml - 1))
- len = 4;
+ len = sizeof(val);
cl = len;
for (s = 0, sl = len; sl > 0; sl--)
OpenPOWER on IntegriCloud