ipvs: correct usage/allocation of seqadj ext in ipvs
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 16 Dec 2013 16:09:47 +0000 (17:09 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 27 Dec 2013 03:30:02 +0000 (12:30 +0900)
commitb25adce1606427fd88da08f5203714cada7f6a98
tree29a3479d6cb2ea8d8a5bf574b44e3993afb23e67
parentdb12cf27435356017e7ab375ef5e82a1cc749384
ipvs: correct usage/allocation of seqadj ext in ipvs

The IPVS FTP helper ip_vs_ftp could trigger an OOPS in nf_ct_seqadj_set,
after commit 41d73ec053d2 (netfilter: nf_conntrack: make sequence number
adjustments usuable without NAT).

This is because, the seqadj ext is now allocated dynamically, and the
IPVS code didn't handle this situation.  Fix this in the IPVS nfct
code by invoking the alloc function nfct_seqadj_ext_add().

Fixes: 41d73ec053d2 (netfilter: nf_conntrack: make sequence number adjustments usuable without NAT)
Suggested-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_nfct.c