Skip to contentSkip to conversation

Staging: dgnc: dgnc_driver: Add a missing call to dgnc_tty_uninit

PATCH In review Quentin Lambert 1 participant 1 message Mar 11, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 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.

---
 drivers/staging/dgnc/dgnc_driver.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/dgnc/dgnc_driver.c +1 -0
index fa1ee79..b7fd2bf 100644
@@ -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;
Signature · 1 line
1.9.1