Staging: dgnc: dgnc_driver: Add a missing call to dgnc_tty_uninit
authorQuentin Lambert <lambert.quentin@gmail.com>
Wed, 11 Mar 2015 14:21:59 +0000 (15:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2015 10:12:28 +0000 (11:12 +0100)
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>
drivers/staging/dgnc/dgnc_driver.c

index d705e6877eab1a9b5b68f666ccf5334433c1a4f1..ec7c155e50a514f10ffb2d14de791259c0c4c18c 100644 (file)
@@ -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;