diff mbox

Input: turbografx - fix reference counting

Message ID 1291208701-3016-1-git-send-email-namhyung@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Namhyung Kim Dec. 1, 2010, 1:05 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/joystick/turbografx.c b/drivers/input/joystick/turbografx.c
index d53b9e9..27b6a3c 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: