]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/tipc/config.c
[SCSI] aha152x: Fix oops on module removal
[linux-2.6-omap-h63xx.git] / net / tipc / config.c
index 14789a82de537b6629383ec37af4ec6d6b5c81dc..c71337a22d337acb9a8df8c6b0b1321f331d6935 100644 (file)
@@ -89,7 +89,7 @@ struct sk_buff *tipc_cfg_reply_alloc(int payload_size)
 int tipc_cfg_append_tlv(struct sk_buff *buf, int tlv_type,
                        void *tlv_data, int tlv_data_size)
 {
-       struct tlv_desc *tlv = (struct tlv_desc *)buf->tail;
+       struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(buf);
        int new_tlv_space = TLV_SPACE(tlv_data_size);
 
        if (skb_tailroom(buf) < new_tlv_space) {