From: Quentin Lambert Date: Wed, 11 Mar 2015 14:21:59 +0000 (+0100) Subject: Staging: dgnc: dgnc_driver: Add a missing call to dgnc_tty_uninit X-Git-Tag: v4.1-rc1~152^2~138^2~474 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9f9de64c09ab0224fa945ed5250d62c157fc7a65;p=karo-tx-linux.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c index d705e6877eab..ec7c155e50a5 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;