Commit 6452a5fd authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NETFILTER]: fix compat_nf_sockopt typo

It should pass opt to the ->get/->set functions, not ops.
Tested-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dab6ba36
...@@ -143,12 +143,12 @@ static int compat_nf_sockopt(struct sock *sk, int pf, int val, ...@@ -143,12 +143,12 @@ static int compat_nf_sockopt(struct sock *sk, int pf, int val,
if (ops->compat_get) if (ops->compat_get)
ret = ops->compat_get(sk, val, opt, len); ret = ops->compat_get(sk, val, opt, len);
else else
ret = ops->get(sk, val, ops, len); ret = ops->get(sk, val, opt, len);
} else { } else {
if (ops->compat_set) if (ops->compat_set)
ret = ops->compat_set(sk, val, ops, *len); ret = ops->compat_set(sk, val, opt, *len);
else else
ret = ops->set(sk, val, ops, *len); ret = ops->set(sk, val, opt, *len);
} }
module_put(ops->owner); module_put(ops->owner);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment