Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362428
b: refs/heads/master
c: 1b581f1
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Khoroshilov authored and Greg Kroah-Hartman committed Apr 8, 2013
1 parent ef04332 commit 696520b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: c12f9ea28e9fbe7b1f4cefc953bee33298370683
refs/heads/master: 1b581f173992cded311f810346378f763a1f1e5d
8 changes: 4 additions & 4 deletions trunk/drivers/tty/mxser.c
Original file line number Diff line number Diff line change
Expand Up @@ -2643,9 +2643,9 @@ static int mxser_probe(struct pci_dev *pdev,
mxvar_sdriver, brd->idx + i, &pdev->dev);
if (IS_ERR(tty_dev)) {
retval = PTR_ERR(tty_dev);
for (i--; i >= 0; i--)
for (; i > 0; i--)
tty_unregister_device(mxvar_sdriver,
brd->idx + i);
brd->idx + i - 1);
goto err_relbrd;
}
}
Expand Down Expand Up @@ -2751,9 +2751,9 @@ static int __init mxser_module_init(void)
tty_dev = tty_port_register_device(&brd->ports[i].port,
mxvar_sdriver, brd->idx + i, NULL);
if (IS_ERR(tty_dev)) {
for (i--; i >= 0; i--)
for (; i > 0; i--)
tty_unregister_device(mxvar_sdriver,
brd->idx + i);
brd->idx + i - 1);
for (i = 0; i < brd->info->nports; i++)
tty_port_destroy(&brd->ports[i].port);
free_irq(brd->irq, brd);
Expand Down

0 comments on commit 696520b

Please sign in to comment.