]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/net/netfilter/nf_conntrack.h
[NETFILTER]: nf_conntrack: fix helper structure alignment
[karo-tx-linux.git] / include / net / netfilter / nf_conntrack.h
index d0d0e64914485c2fadc340ee87f8bccaa1911ce7..b4beb8c799e565c9b02530d9c3fe951db13c9c25 100644 (file)
@@ -273,6 +273,7 @@ static inline struct nf_conn_help *nfct_help(const struct nf_conn *ct)
        if (!(ct->features & NF_CT_F_HELP))
                return NULL;
 
+       offset = ALIGN(offset, __alignof__(struct nf_conn_help));
        return (struct nf_conn_help *) ((void *)ct + offset);
 }