mac80211: fix failure to check kmalloc return value in key_key_read
[pandora-kernel.git] / net / tipc / net.c
index f61b769..1a621cf 100644 (file)
@@ -129,15 +129,6 @@ u32 tipc_net_select_router(u32 addr, u32 ref)
        return tipc_zone_select_router(tipc_net.zones[tipc_zone(addr)], addr, ref);
 }
 
-#if 0
-u32 tipc_net_next_node(u32 a)
-{
-       if (tipc_net.zones[tipc_zone(a)])
-               return tipc_zone_next_node(a);
-       return 0;
-}
-#endif
-
 void tipc_net_remove_as_router(u32 router)
 {
        u32 z_num;
@@ -248,6 +239,7 @@ void tipc_net_route_msg(struct sk_buff *buf)
 
        /* Handle message for another node */
        msg_dbg(msg, "NET>SEND>: ");
+       skb_trim(buf, msg_size(msg));
        tipc_link_send(buf, dnode, msg_link_selector(msg));
 }