]> err.no Git - linux-2.6/blobdiff - net/ax25/ax25_out.c
[PATCH] sunrpc: cache_register can use wrong module reference
[linux-2.6] / net / ax25 / ax25_out.c
index 94557b1a1fa2acedd47b30c3e51b9733eb02b53a..5fc048dcd39ab29089b4140785f75315d4348f6f 100644 (file)
@@ -351,8 +351,7 @@ void ax25_queue_xmit(struct sk_buff *skb, struct net_device *dev)
 {
        unsigned char *ptr;
 
-       skb->protocol = htons(ETH_P_AX25);
-       skb->dev      = ax25_fwd_dev(dev);
+       skb->protocol = ax25_type_trans(skb, ax25_fwd_dev(dev));
 
        ptr  = skb_push(skb, 1);
        *ptr = 0x00;                    /* KISS */