diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-06 02:08:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-06 02:08:07 -0400 |
commit | ea2aca084ba82aaf7c148d04914ceed8758ce08a (patch) | |
tree | dcb3f4f849cf48deac2dd3bafd5c2cd2f0e7dc79 /net/core | |
parent | f3032be921cd126615ce3bfd7084e3d319f3f892 (diff) | |
parent | c5a78ac00c400df29645e59938700301efb371d0 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
Documentation/feature-removal-schedule.txt
drivers/net/wan/hdlc_fr.c
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl3945-base.c
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 4 | ||||
-rw-r--r-- | net/core/fib_rules.c | 4 | ||||
-rw-r--r-- | net/core/filter.c | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 472676dd550e..bfa9a6a951dd 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -455,7 +455,7 @@ static int netdev_boot_setup_add(char *name, struct ifmap *map) | |||
455 | for (i = 0; i < NETDEV_BOOT_SETUP_MAX; i++) { | 455 | for (i = 0; i < NETDEV_BOOT_SETUP_MAX; i++) { |
456 | if (s[i].name[0] == '\0' || s[i].name[0] == ' ') { | 456 | if (s[i].name[0] == '\0' || s[i].name[0] == ' ') { |
457 | memset(s[i].name, 0, sizeof(s[i].name)); | 457 | memset(s[i].name, 0, sizeof(s[i].name)); |
458 | strcpy(s[i].name, name); | 458 | strlcpy(s[i].name, name, IFNAMSIZ); |
459 | memcpy(&s[i].map, map, sizeof(s[i].map)); | 459 | memcpy(&s[i].map, map, sizeof(s[i].map)); |
460 | break; | 460 | break; |
461 | } | 461 | } |
@@ -480,7 +480,7 @@ int netdev_boot_setup_check(struct net_device *dev) | |||
480 | 480 | ||
481 | for (i = 0; i < NETDEV_BOOT_SETUP_MAX; i++) { | 481 | for (i = 0; i < NETDEV_BOOT_SETUP_MAX; i++) { |
482 | if (s[i].name[0] != '\0' && s[i].name[0] != ' ' && | 482 | if (s[i].name[0] != '\0' && s[i].name[0] != ' ' && |
483 | !strncmp(dev->name, s[i].name, strlen(s[i].name))) { | 483 | !strcmp(dev->name, s[i].name)) { |
484 | dev->irq = s[i].map.irq; | 484 | dev->irq = s[i].map.irq; |
485 | dev->base_addr = s[i].map.base_addr; | 485 | dev->base_addr = s[i].map.base_addr; |
486 | dev->mem_start = s[i].map.mem_start; | 486 | dev->mem_start = s[i].map.mem_start; |
diff --git a/net/core/fib_rules.c b/net/core/fib_rules.c index 1c2943a119f3..79de3b14a8d1 100644 --- a/net/core/fib_rules.c +++ b/net/core/fib_rules.c | |||
@@ -226,7 +226,7 @@ static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) | |||
226 | 226 | ||
227 | ops = lookup_rules_ops(net, frh->family); | 227 | ops = lookup_rules_ops(net, frh->family); |
228 | if (ops == NULL) { | 228 | if (ops == NULL) { |
229 | err = EAFNOSUPPORT; | 229 | err = -EAFNOSUPPORT; |
230 | goto errout; | 230 | goto errout; |
231 | } | 231 | } |
232 | 232 | ||
@@ -365,7 +365,7 @@ static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) | |||
365 | 365 | ||
366 | ops = lookup_rules_ops(net, frh->family); | 366 | ops = lookup_rules_ops(net, frh->family); |
367 | if (ops == NULL) { | 367 | if (ops == NULL) { |
368 | err = EAFNOSUPPORT; | 368 | err = -EAFNOSUPPORT; |
369 | goto errout; | 369 | goto errout; |
370 | } | 370 | } |
371 | 371 | ||
diff --git a/net/core/filter.c b/net/core/filter.c index 4f8369729a4e..df3744355839 100644 --- a/net/core/filter.c +++ b/net/core/filter.c | |||
@@ -68,7 +68,6 @@ static inline void *load_pointer(struct sk_buff *skb, int k, | |||
68 | * sk_filter - run a packet through a socket filter | 68 | * sk_filter - run a packet through a socket filter |
69 | * @sk: sock associated with &sk_buff | 69 | * @sk: sock associated with &sk_buff |
70 | * @skb: buffer to filter | 70 | * @skb: buffer to filter |
71 | * @needlock: set to 1 if the sock is not locked by caller. | ||
72 | * | 71 | * |
73 | * Run the filter code and then cut skb->data to correct size returned by | 72 | * Run the filter code and then cut skb->data to correct size returned by |
74 | * sk_run_filter. If pkt_len is 0 we toss packet. If skb->len is smaller | 73 | * sk_run_filter. If pkt_len is 0 we toss packet. If skb->len is smaller |