Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354809
b: refs/heads/master
c: 27dd2e0
h: refs/heads/master
i:
  354807: a902332
v: v3
  • Loading branch information
Tony Prisk authored and Greg Kroah-Hartman committed Jan 18, 2013
1 parent ce9409c commit de38676
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: f938f3781fa877146236042341ddbcf06bc49f0a
refs/heads/master: 27dd2e04923341cff96aae164117c44da1072c32
4 changes: 2 additions & 2 deletions trunk/drivers/tty/serial/vt8500_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static int vt8500_serial_probe(struct platform_device *pdev)

if (np)
port = of_alias_get_id(np, "serial");
if (port > VT8500_MAX_PORTS)
if (port >= VT8500_MAX_PORTS)
port = -1;
else
port = -1;
Expand All @@ -571,7 +571,7 @@ static int vt8500_serial_probe(struct platform_device *pdev)
sizeof(vt8500_ports_in_use));
}

if (port > VT8500_MAX_PORTS)
if (port >= VT8500_MAX_PORTS)
return -ENODEV;

/* reserve the port id */
Expand Down

0 comments on commit de38676

Please sign in to comment.