diff options
author | Quentin Lambert <lambert.quentin@gmail.com> | 2015-03-11 14:21:59 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-12 10:12:28 (GMT) |
commit | 9f9de64c09ab0224fa945ed5250d62c157fc7a65 (patch) | |
tree | bb61cc738ccde05bbbbf3ca4109e2add393d1cd7 /drivers/staging/dgnc | |
parent | 1f2e089f68a931c22d8132b1284478cfa2357fc9 (diff) | |
download | linux-9f9de64c09ab0224fa945ed5250d62c157fc7a65.tar.xz |
Staging: dgnc: dgnc_driver: Add a missing call to dgnc_tty_uninit
This function is called on the previous and the next failure branches.
This patch adds the call on the branch where it seems to be missing.
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r-- | drivers/staging/dgnc/dgnc_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index d705e68..ec7c155 100644 --- a/drivers/staging/dgnc/dgnc_driver.c +++ b/drivers/staging/dgnc/dgnc_driver.c @@ -558,6 +558,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id) rc = dgnc_finalize_board_init(brd); if (rc < 0) { + dgnc_tty_uninit(brd); pr_err(DRVSTR ": Can't finalize board init (%d)\n", rc); brd->state = BOARD_FAILED; brd->dpastatus = BD_NOFEP; |