joydev open count handling
Subsystems (2)
PATCH 1/1 joydev open count handling
Hi,
if joydev_open() fails, the open count has to be adjusted.
Regards
Oliver
Signed-off-by Oliver Neukum <[email protected]>
----
drivers/input/joydev.c +3 -1
@@ -193,8 +193,10 @@ static int joydev_open(struct inode *inoif (!joydev->open++ && joydev->exist) { error =input_open_device (&joydev->handle); -if (error) +if (error) { + joydev->open--; goto err_free_client; + } } file->private_data = client;
Dmitry Torokhov
maintainerQuoted 4 lines · Oliver Neukum
Hi,
if
joydev_open()fails, the open count has to be adjusted.
Thank you Oliver. This will need some adjustments to be applied to my tree, I will take care of that.
Signature · 1 line
Dmitry