diff options
author | Benjamin Tissoires <[email protected]> | 2013-04-02 11:11:52 +0200 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2013-04-04 09:49:56 +0200 |
commit | f1a9a149abc86903e81dd1b2e720f3f89874384b (patch) | |
tree | e0afda3a56352eec1afed013171e0a4d55ca9399 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 30b29537bcba070b3df8d7d24c1975676a1a6a4f (diff) |
HID: magicmouse: fix race between input_register() and probe()
Since kernel 3.7, it appears that the input registration occured before
the end of magicmouse_setup_input(). This is shown by receiving a lot of
"EV_SYN SYN_REPORT 1" instead of normal "EV_SYN SYN_REPORT 0".
This value means that the output buffer is full, and the user space
is loosing events.
Using .input_configured guarantees that the race is not occuring, and that
the call of "input_set_events_per_packet(input, 60)" is taken into account
by input_register().
Fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=908604
Cc: [email protected]
Reported-and-Tested-By: Clarke Wixon <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions