diff options
| author | Ingo Molnar <mingo@kernel.org> | 2013-08-12 19:51:43 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2013-08-12 19:51:43 +0200 | 
| commit | 6356bb0ad6525dae93c06478a098ed3848e9ab01 (patch) | |
| tree | 8fdbda28405fb0b1c213f2a87c532a760510adf0 /net/netfilter/xt_socket.c | |
| parent | 7781544e7c367d0cae87feb0f0675fd333bfc9d8 (diff) | |
| parent | 0ca06c0857aee11911f91621db14498496f2c2cd (diff) | |
Merge tag 'please-pull-mce-f-bit' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras into x86/ras
Pull MCE-uncorrected-error fix from Tony Luck:
 "Bit 12 may or may not be set in MCi_STATUS.MCACOD when
  an uncorrected error is reported. Ignore it when checking
  error signatures."
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/netfilter/xt_socket.c')
| -rw-r--r-- | net/netfilter/xt_socket.c | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/net/netfilter/xt_socket.c b/net/netfilter/xt_socket.c index f8b71911037a..20b15916f403 100644 --- a/net/netfilter/xt_socket.c +++ b/net/netfilter/xt_socket.c @@ -172,7 +172,7 @@ socket_match(const struct sk_buff *skb, struct xt_action_param *par,  		/* Ignore non-transparent sockets,  		   if XT_SOCKET_TRANSPARENT is used */ -		if (info && info->flags & XT_SOCKET_TRANSPARENT) +		if (info->flags & XT_SOCKET_TRANSPARENT)  			transparent = ((sk->sk_state != TCP_TIME_WAIT &&  					inet_sk(sk)->transparent) ||  				       (sk->sk_state == TCP_TIME_WAIT && @@ -196,7 +196,11 @@ socket_match(const struct sk_buff *skb, struct xt_action_param *par,  static bool  socket_mt4_v0(const struct sk_buff *skb, struct xt_action_param *par)  { -	return socket_match(skb, par, NULL); +	static struct xt_socket_mtinfo1 xt_info_v0 = { +		.flags = 0, +	}; + +	return socket_match(skb, par, &xt_info_v0);  }  static bool @@ -314,7 +318,7 @@ socket_mt6_v1_v2(const struct sk_buff *skb, struct xt_action_param *par)  		/* Ignore non-transparent sockets,  		   if XT_SOCKET_TRANSPARENT is used */ -		if (info && info->flags & XT_SOCKET_TRANSPARENT) +		if (info->flags & XT_SOCKET_TRANSPARENT)  			transparent = ((sk->sk_state != TCP_TIME_WAIT &&  					inet_sk(sk)->transparent) ||  				       (sk->sk_state == TCP_TIME_WAIT &&  | 
