diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-10-13 23:37:30 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-10-14 00:36:33 -0700 |
commit | 1572ca2a842a839b78780d9074d2f140b31907cc (patch) | |
tree | 1628fd4699c8bd685cef8d47906af7eee05efc7a /scripts/setlocalversion | |
parent | 94dfb0d6334a281a979fe5bee187a3698a4dc176 (diff) |
Input: fix locking issue in /proc/bus/input/ handlers
input_devices_seq_start() uses mutex_lock_interruptible() to acquire
the input_mutex, but doesn't properly handle the situation when the
call fails (for example due to interrupt). Instead of returning NULL
(which indicates that there is no more data) we should return
ERR_PTR()-encoded error.
We also need explicit flag indicating whether input_mutex was acquired
since input_devices_seq_stop() is called whether input_devices_seq_start()
was successful or not.
The same applies to input_handlers_seq_start().
Reported-by: iceberg <strakh@ispras.ru>
Reviewed-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'scripts/setlocalversion')
0 files changed, 0 insertions, 0 deletions