Commit 71a82136 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: If !IFF_UP drop the frames.

parent 1008a7fe
......@@ -692,10 +692,11 @@ lec_push(struct atm_vcc *vcc, struct sk_buff *skb)
atm_return(vcc,skb->truesize);
if (*(uint16_t *)skb->data == htons(priv->lecid) ||
!priv->lecd) {
!priv->lecd ||
!(dev->flags & IFF_UP)) {
/* Probably looping back, or if lecd is missing,
lecd has gone down */
DPRINTK("Ignoring loopback frame...\n");
DPRINTK("Ignoring frame...\n");
dev_kfree_skb(skb);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment