浏览代码

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>
Namhyung Kim 14 年之前
父节点
当前提交
8ed9e0e1b6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/input/joystick/turbografx.c

+ 1 - 0
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: