From: Patrick McHardy Date: Thu, 15 Nov 2007 22:29:21 +0000 (-0800) Subject: [NETFILTER]: fix compat_nf_sockopt typo X-Git-Tag: v2.6.24-rc3~5^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6452a5fde03717c55dbb8b6b0b5bfab510ad38d5;p=linux-2.6-omap-h63xx.git [NETFILTER]: fix compat_nf_sockopt typo It should pass opt to the ->get/->set functions, not ops. Tested-by: Luca Tettamanti Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nf_sockopt.c b/net/netfilter/nf_sockopt.c index 87bc1443c52..3dd4b3c76d8 100644 --- a/net/netfilter/nf_sockopt.c +++ b/net/netfilter/nf_sockopt.c @@ -143,12 +143,12 @@ static int compat_nf_sockopt(struct sock *sk, int pf, int val, if (ops->compat_get) ret = ops->compat_get(sk, val, opt, len); else - ret = ops->get(sk, val, ops, len); + ret = ops->get(sk, val, opt, len); } else { if (ops->compat_set) - ret = ops->compat_set(sk, val, ops, *len); + ret = ops->compat_set(sk, val, opt, *len); else - ret = ops->set(sk, val, ops, *len); + ret = ops->set(sk, val, opt, *len); } module_put(ops->owner);