Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6

* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
[NETFILTER]: silence a warning in ebtables
[IPV6]: File the fingerprints off ah6->spi/esp6->spi
[TCP]: Set default congestion control when no sysctl.
[TIPC] net/tipc/port.c: fix NULL dereference

+14 -12
+1 -1
net/bridge/netfilter/ebtables.c
··· 86 86 static inline int ebt_dev_check(char *entry, const struct net_device *device) 87 87 { 88 88 int i = 0; 89 - char *devname = device->name; 89 + const char *devname = device->name; 90 90 91 91 if (*entry == '\0') 92 92 return 0;
-7
net/ipv4/sysctl_net_ipv4.c
··· 129 129 return ret; 130 130 } 131 131 132 - static int __init tcp_congestion_default(void) 133 - { 134 - return tcp_set_default_congestion_control(CONFIG_DEFAULT_TCP_CONG); 135 - } 136 - 137 - late_initcall(tcp_congestion_default); 138 - 139 132 ctl_table ipv4_table[] = { 140 133 { 141 134 .ctl_name = NET_IPV4_TCP_TIMESTAMPS,
+8
net/ipv4/tcp_cong.c
··· 131 131 return ret; 132 132 } 133 133 134 + /* Set default value from kernel configuration at bootup */ 135 + static int __init tcp_congestion_default(void) 136 + { 137 + return tcp_set_default_congestion_control(CONFIG_DEFAULT_TCP_CONG); 138 + } 139 + late_initcall(tcp_congestion_default); 140 + 141 + 134 142 /* Get current default congestion control */ 135 143 void tcp_get_default_congestion_control(char *name) 136 144 {
+2 -2
net/ipv6/xfrm6_tunnel.c
··· 135 135 x6spi = __xfrm6_tunnel_spi_lookup(saddr); 136 136 spi = x6spi ? x6spi->spi : 0; 137 137 read_unlock_bh(&xfrm6_tunnel_spi_lock); 138 - return spi; 138 + return htonl(spi); 139 139 } 140 140 141 141 EXPORT_SYMBOL(xfrm6_tunnel_spi_lookup); ··· 210 210 spi = __xfrm6_tunnel_alloc_spi(saddr); 211 211 write_unlock_bh(&xfrm6_tunnel_spi_lock); 212 212 213 - return spi; 213 + return htonl(spi); 214 214 } 215 215 216 216 EXPORT_SYMBOL(xfrm6_tunnel_alloc_spi);
+3 -2
net/tipc/port.c
··· 1136 1136 int res = -EINVAL; 1137 1137 1138 1138 p_ptr = tipc_port_lock(ref); 1139 + if (!p_ptr) 1140 + return -EINVAL; 1141 + 1139 1142 dbg("tipc_publ %u, p_ptr = %x, conn = %x, scope = %x, " 1140 1143 "lower = %u, upper = %u\n", 1141 1144 ref, p_ptr, p_ptr->publ.connected, scope, seq->lower, seq->upper); 1142 - if (!p_ptr) 1143 - return -EINVAL; 1144 1145 if (p_ptr->publ.connected) 1145 1146 goto exit; 1146 1147 if (seq->lower > seq->upper)