fix return value of __pppoe_xmit() method.

Hi,
 __pppoe_xmit() in drivers/net/pppoe always returns 1.
When the methods fails (via goto abort), it should return 0 and not 1.

Regards,
Rami Rosen

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Rami Rosen 2010-06-03 05:02:29 +00:00 committed by David S. Miller
parent 5918e2fb90
commit 55c95e738d
1 changed files with 1 additions and 1 deletions

View File

@ -949,7 +949,7 @@ static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb)
abort: abort:
kfree_skb(skb); kfree_skb(skb);
return 1; return 0;
} }
/************************************************************************ /************************************************************************