mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 02:21:47 +00:00
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>
This commit is contained in:
parent
1f2e089f68
commit
9f9de64c09
@ -558,6 +558,7 @@ static int dgnc_found_board(struct pci_dev *pdev, int id)
|
|||||||
|
|
||||||
rc = dgnc_finalize_board_init(brd);
|
rc = dgnc_finalize_board_init(brd);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
|
dgnc_tty_uninit(brd);
|
||||||
pr_err(DRVSTR ": Can't finalize board init (%d)\n", rc);
|
pr_err(DRVSTR ": Can't finalize board init (%d)\n", rc);
|
||||||
brd->state = BOARD_FAILED;
|
brd->state = BOARD_FAILED;
|
||||||
brd->dpastatus = BD_NOFEP;
|
brd->dpastatus = BD_NOFEP;
|
||||||
|
Loading…
Reference in New Issue
Block a user