Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Namhyung Kim and committed by
Dmitry Torokhov
8ed9e0e1 3bfa321e

+1
+1
drivers/input/joystick/turbografx.c
··· 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: