Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98583
b: refs/heads/master
c: 93b3cff
h: refs/heads/master
i:
  98581: 2ea97fe
  98579: 20db96c
  98575: 22bfe76
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Jul 2, 2008
1 parent b8f670e commit ad5f90d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8fde8a076940969d32805b853efdce8b988d7dda
refs/heads/master: 93b3cff9915322d6fa36bac0064714a7076230e4
4 changes: 2 additions & 2 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ static int netdev_boot_setup_add(char *name, struct ifmap *map)
for (i = 0; i < NETDEV_BOOT_SETUP_MAX; i++) {
if (s[i].name[0] == '\0' || s[i].name[0] == ' ') {
memset(s[i].name, 0, sizeof(s[i].name));
strcpy(s[i].name, name);
strlcpy(s[i].name, name, IFNAMSIZ);
memcpy(&s[i].map, map, sizeof(s[i].map));
break;
}
Expand All @@ -479,7 +479,7 @@ int netdev_boot_setup_check(struct net_device *dev)

for (i = 0; i < NETDEV_BOOT_SETUP_MAX; i++) {
if (s[i].name[0] != '\0' && s[i].name[0] != ' ' &&
!strncmp(dev->name, s[i].name, strlen(s[i].name))) {
!strcmp(dev->name, s[i].name)) {
dev->irq = s[i].map.irq;
dev->base_addr = s[i].map.base_addr;
dev->mem_start = s[i].map.mem_start;
Expand Down

0 comments on commit ad5f90d

Please sign in to comment.