提交 8ed9e0e1 编写于 作者: N Namhyung Kim 提交者: Dmitry Torokhov

Input: turbografx - fix reference counting

The ref-count of parport gained from parport_find_number()
was not released in normal path.
Signed-off-by: NNamhyung Kim <namhyung@gmail.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 3bfa321e
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册