LKML Archive on
help / color / mirror / Atom feed
From: Quentin Lambert <>
To: Lidza Louina <>,
	Mark Hounschell <>,
	Greg Kroah-Hartman <>
Subject: [PATCH 1/3] Staging: dgnc: dgnc_driver: Add a missing call to dgnc_tty_uninit
Date: Wed, 11 Mar 2015 15:03:44 +0100	[thread overview]
Message-ID: <20150311140344.GA17038@sloth> (raw)

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 <>
 drivers/staging/dgnc/dgnc_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index fa1ee79..b7fd2bf 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -581,6 +581,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;

                 reply	other threads:[~2015-03-11 14:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150311140344.GA17038@sloth \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).