Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: reduce raciness when input handlers disconnect Input: ucb1x00 - do not access input_dev->private directly Input: logips2pp - fix typo in Kconfig Input: db9 - do not ignore dev2 module parameter
This commit is contained in:
@@ -766,9 +766,9 @@ static void mousedev_disconnect(struct input_handle *handle)
|
||||
|
||||
if (mousedev->open) {
|
||||
input_close_device(handle);
|
||||
wake_up_interruptible(&mousedev->wait);
|
||||
list_for_each_entry(client, &mousedev->client_list, node)
|
||||
kill_fasync(&client->fasync, SIGIO, POLL_HUP);
|
||||
wake_up_interruptible(&mousedev->wait);
|
||||
} else
|
||||
mousedev_free(mousedev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user