summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/pci/if_rl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index 47c4de5..7a22598 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -1506,8 +1506,10 @@ rl_encap(sc, m_head)
*/
m_new = m_defrag(m_head, M_DONTWAIT);
- if (m_new == NULL)
+ if (m_new == NULL) {
+ m_freem(m_head);
return(1);
+ }
m_head = m_new;
/* Pad frames to at least 60 bytes. */
@@ -1550,8 +1552,6 @@ rl_start(ifp)
break;
if (rl_encap(sc, m_head)) {
- IF_PREPEND(&ifp->if_snd, m_head);
- ifp->if_flags |= IFF_OACTIVE;
break;
}
OpenPOWER on IntegriCloud