提交 6452a5fd 编写于 作者: P Patrick McHardy 提交者: David S. Miller

[NETFILTER]: fix compat_nf_sockopt typo

It should pass opt to the ->get/->set functions, not ops.
Tested-by: NLuca Tettamanti <kronos.it@gmail.com>
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 dab6ba36
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册