summaryrefslogtreecommitdiffstats
path: root/drivers/input/joystick
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2010-12-01 09:19:45 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-12-01 09:20:34 -0800
commit8ed9e0e1b602a0bcdc3bef52ec05fdab5b484341 (patch)
treee49ad1d6cbcfec5570b6de4332f4a4387d37b266 /drivers/input/joystick
parent3bfa321e662edf90fb8123a02c987c2965fa50bb (diff)
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>
Diffstat (limited to 'drivers/input/joystick')
-rw-r--r--drivers/input/joystick/turbografx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/joystick/turbografx.c b/drivers/input/joystick/turbografx.c
index d53b9e90023..27b6a3ce18c 100644
--- a/drivers/input/joystick/turbografx.c
+++ b/drivers/input/joystick/turbografx.c
@@ -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: