On 10/29/07, Jiri Kosina <jikos@xxxxxxxx> wrote:On Mon, 29 Oct 2007, Dirk Hohndel wrote:
[INPUT] hidinput_connect incorrectly ignored return value fromWill apply
input_register_device
Signed-off-by: Dirk Hohndel <hohndel@xxxxxxxxxxxxxxx>
Please don't - the fix is completely broken for multi-input devices -
if 2nd device fails to register we bail out of hidinput_connect and
thus never set HID_CLAIMED_INPUT bit. So when we disconnect device we
never call hidinput_disconnect and who knows what will happen after
that.
hidinput_connect() should properly unwind already registered devices
after failure.