diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:46:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-21 18:46:17 -0400 |
commit | 529a41e36673b518c9e091f3a8d932b6b9e3c461 (patch) | |
tree | 12416411590cb5d2b7f365f3800e31306909d6ce /net | |
parent | c3823c479e1f86a0adc7bb76fcfded67b042afc3 (diff) | |
parent | 43837b1e6c5aef803d57009a68db18df13e64892 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
rose: Socket lock was not released before returning to user space
hci_usb: remove code obfuscation
drivers/net/appletalk: use time_before, time_before_eq, etc
drivers/atm: use time_before, time_before_eq, etc
hci_usb: do not initialize static variables to 0
tg3: 5701 DMA corruption fix
atm nicstar: Removal of debug code containing deprecated calls to cli()/sti()
iwlwifi: Fix unconditional access to station->tidp[].agg.
netfilter: Fix SIP conntrack build with NAT disabled.
netfilter: Fix SCTP nat build.
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/Kconfig | 1 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_sip.c | 3 | ||||
-rw-r--r-- | net/rose/af_rose.c | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/Kconfig b/net/ipv4/netfilter/Kconfig index 0c95cd5872f3..2767841a8cef 100644 --- a/net/ipv4/netfilter/Kconfig +++ b/net/ipv4/netfilter/Kconfig | |||
@@ -259,6 +259,7 @@ config NF_NAT_PROTO_SCTP | |||
259 | tristate | 259 | tristate |
260 | default NF_NAT && NF_CT_PROTO_SCTP | 260 | default NF_NAT && NF_CT_PROTO_SCTP |
261 | depends on NF_NAT && NF_CT_PROTO_SCTP | 261 | depends on NF_NAT && NF_CT_PROTO_SCTP |
262 | select LIBCRC32C | ||
262 | 263 | ||
263 | config NF_NAT_FTP | 264 | config NF_NAT_FTP |
264 | tristate | 265 | tristate |
diff --git a/net/netfilter/nf_conntrack_sip.c b/net/netfilter/nf_conntrack_sip.c index 65b3ba57a3b7..9f4900069561 100644 --- a/net/netfilter/nf_conntrack_sip.c +++ b/net/netfilter/nf_conntrack_sip.c | |||
@@ -781,7 +781,7 @@ static int set_expected_rtp_rtcp(struct sk_buff *skb, | |||
781 | nfct_help(exp->master)->helper != nfct_help(ct)->helper || | 781 | nfct_help(exp->master)->helper != nfct_help(ct)->helper || |
782 | exp->class != class) | 782 | exp->class != class) |
783 | break; | 783 | break; |
784 | 784 | #ifdef CONFIG_NF_NAT_NEEDED | |
785 | if (exp->tuple.src.l3num == AF_INET && !direct_rtp && | 785 | if (exp->tuple.src.l3num == AF_INET && !direct_rtp && |
786 | (exp->saved_ip != exp->tuple.dst.u3.ip || | 786 | (exp->saved_ip != exp->tuple.dst.u3.ip || |
787 | exp->saved_proto.udp.port != exp->tuple.dst.u.udp.port) && | 787 | exp->saved_proto.udp.port != exp->tuple.dst.u.udp.port) && |
@@ -791,6 +791,7 @@ static int set_expected_rtp_rtcp(struct sk_buff *skb, | |||
791 | tuple.dst.u.udp.port = exp->saved_proto.udp.port; | 791 | tuple.dst.u.udp.port = exp->saved_proto.udp.port; |
792 | direct_rtp = 1; | 792 | direct_rtp = 1; |
793 | } else | 793 | } else |
794 | #endif | ||
794 | skip_expect = 1; | 795 | skip_expect = 1; |
795 | } while (!skip_expect); | 796 | } while (!skip_expect); |
796 | rcu_read_unlock(); | 797 | rcu_read_unlock(); |
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c index d1ff3f885c5d..1ebf65294405 100644 --- a/net/rose/af_rose.c +++ b/net/rose/af_rose.c | |||
@@ -760,8 +760,10 @@ static int rose_connect(struct socket *sock, struct sockaddr *uaddr, int addr_le | |||
760 | 760 | ||
761 | rose->neighbour = rose_get_neigh(&addr->srose_addr, &cause, | 761 | rose->neighbour = rose_get_neigh(&addr->srose_addr, &cause, |
762 | &diagnostic); | 762 | &diagnostic); |
763 | if (!rose->neighbour) | 763 | if (!rose->neighbour) { |
764 | return -ENETUNREACH; | 764 | err = -ENETUNREACH; |
765 | goto out_release; | ||
766 | } | ||
765 | 767 | ||
766 | rose->lci = rose_new_lci(rose->neighbour); | 768 | rose->lci = rose_new_lci(rose->neighbour); |
767 | if (!rose->lci) { | 769 | if (!rose->lci) { |