Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ed9e0e1 authored by Namhyung Kim's avatar Namhyung Kim Committed by Dmitry Torokhov
Browse files

Input: turbografx - fix reference counting



The ref-count of parport gained from parport_find_number()
was not released in normal path.

Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 3bfa321e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -245,6 +245,7 @@ static struct tgfx __init *tgfx_probe(int parport, int *n_buttons, int n_devs)
		goto err_free_tgfx;
        }

	parport_put_port(pp);
	return tgfx;

 err_free_dev: