dect
/
linux-2.6
Archived
13
0
Fork 0

Input: turbografx - fix reference counting

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

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
Namhyung Kim 2010-12-01 09:19:45 -08:00 committed by Dmitry Torokhov
parent 3bfa321e66
commit 8ed9e0e1b6
1 changed files with 1 additions and 0 deletions

View File

@ -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: