projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bfa321
)
Input: turbografx - fix reference counting
author
Namhyung Kim
<namhyung@gmail.com>
Wed, 1 Dec 2010 17:19:45 +0000
(09:19 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Wed, 1 Dec 2010 17:20:34 +0000
(09:20 -0800)
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>
drivers/input/joystick/turbografx.c
patch
|
blob
|
history
diff --git
a/drivers/input/joystick/turbografx.c
b/drivers/input/joystick/turbografx.c
index d53b9e900234e7ba95c2c0b9500a830b96c07803..27b6a3ce18caf2e996177e6c313fff2b21a4ad19 100644
(file)
--- 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: