Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351544
b: refs/heads/master
c: f9bf5a2
h: refs/heads/master
v: v3
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Jan 21, 2013
1 parent d85fb99 commit fa2e6cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f490be049ba0a3b194bed3a0dfbdcab1ef0ae063
refs/heads/master: f9bf5a2ca6cc331f32e3dd9cf16ced7215d0e6e8
6 changes: 6 additions & 0 deletions trunk/net/dsa/dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ dsa_switch_setup(struct dsa_switch_tree *dst, int index,
int ret;
char *name;
int i;
bool valid_name_found = false;

/*
* Probe for switch model.
Expand Down Expand Up @@ -131,8 +132,13 @@ dsa_switch_setup(struct dsa_switch_tree *dst, int index,
} else {
ds->phys_port_mask |= 1 << i;
}
valid_name_found = true;
}

if (!valid_name_found && i == DSA_MAX_PORTS) {
ret = -EINVAL;
goto out;
}

/*
* If the CPU connects to this switch, set the switch tree
Expand Down

0 comments on commit fa2e6cf

Please sign in to comment.