Skip to contentSkip to conversation

: fix compat_nf_sockopt typo

NETFILTER Applied Patrick McHardy 2 participants 2 messages Nov 15, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

[NETFILTER]: fix compat_nf_sockopt typo

It should pass opt to the ->get/->set functions, not ops.

---
commit 65ad145a53233f4ddd3021ad23e8407137c9207c
tree a6633e33307b5ec1e11fedc2d0e125ed6e2bd081
parent 99fee6d7e5748d96884667a4628118f7fc130ea0
author Patrick McHardy <[email protected]> Thu, 15 Nov 2007 22:57:57 +0100 committer Patrick McHardy <[email protected]> Thu, 15 Nov 2007 22:57:57 +0100

 net/netfilter/nf_sockopt.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
net/netfilter/nf_sockopt.c +3 -3
index 87bc144..3dd4b3c 100644
@@ -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);
maintainer Applied
#1 lore raw

From: Patrick McHardy <[email protected]>
Date: Thu, 15 Nov 2007 22:58:37 +0100

Quoted 6 lines

[NETFILTER]: fix compat_nf_sockopt typo

It should pass opt to the ->get/->set functions, not ops.

Applied, thanks a lot Patrick.

I double checked and it seems -stable doesn't need this, only 2.6.24

Let me know if my analysis is incorrect.

Thanks again.