Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218576
b: refs/heads/master
c: 713efa9
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Oct 28, 2010
1 parent 42f5a0e commit 0f93211
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 60ee6d5faf5f7920ba88b82c072864596f5b88af
refs/heads/master: 713efa9a64fac01abc296228c5ca4f507217a8c9
5 changes: 4 additions & 1 deletion trunk/drivers/char/rocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2345,7 +2345,7 @@ static int __init rp_init(void)
ret = tty_register_driver(rocket_driver);
if (ret < 0) {
printk(KERN_ERR "Couldn't install tty RocketPort driver\n");
goto err_tty;
goto err_controller;
}

#ifdef ROCKET_DEBUG_OPEN
Expand Down Expand Up @@ -2380,6 +2380,9 @@ static int __init rp_init(void)
return 0;
err_ttyu:
tty_unregister_driver(rocket_driver);
err_controller:
if (controller)
release_region(controller, 4);
err_tty:
put_tty_driver(rocket_driver);
err:
Expand Down

0 comments on commit 0f93211

Please sign in to comment.