Skip to content

Commit

Permalink
Input: turbografx - fix reference counting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Namhyung Kim authored and Dmitry Torokhov committed Dec 1, 2010
1 parent 3bfa321 commit 8ed9e0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/joystick/turbografx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8ed9e0e

Please sign in to comment.