mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[NETFILTER]: fix compat_nf_sockopt typo
It should pass opt to the ->get/->set functions, not ops. Tested-by: Luca Tettamanti <[email protected]> Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
dab6ba3688
commit
6452a5fde0
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue