Commit 8ed9e0e1b602a0bcdc3bef52ec05fdab5b484341

Authored by Namhyung Kim
Committed by Dmitry Torokhov
1 parent 3bfa321e66

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/input/joystick/turbografx.c
... ... @@ -245,6 +245,7 @@
245 245 goto err_free_tgfx;
246 246 }
247 247  
  248 + parport_put_port(pp);
248 249 return tgfx;
249 250  
250 251 err_free_dev: