Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331398
b: refs/heads/master
c: 33e1afc
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Khoroshilov authored and Rusty Russell committed Sep 28, 2012
1 parent 78e05c9 commit 00ccbc9
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 5b8fa822b71fa91b17c9fb38bcca31e771f7650d
refs/heads/master: 33e1afc3d82697599ccc8dc8f2fa44ffff5ae329
12 changes: 11 additions & 1 deletion trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,17 @@ static int __init init(void)
INIT_LIST_HEAD(&pdrvdata.consoles);
INIT_LIST_HEAD(&pdrvdata.portdevs);

return register_virtio_driver(&virtio_console);
err = register_virtio_driver(&virtio_console);
if (err < 0) {
pr_err("Error %d registering virtio driver\n", err);
goto free;
}
return 0;
free:
if (pdrvdata.debugfs_dir)
debugfs_remove_recursive(pdrvdata.debugfs_dir);
class_destroy(pdrvdata.class);
return err;
}

static void __exit fini(void)
Expand Down

0 comments on commit 00ccbc9

Please sign in to comment.