Input: uinput - mark failed submission requests as free
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Jul 2012 05:48:32 +0000 (22:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Aug 2012 05:29:54 +0000 (22:29 -0700)
commit00ce756ce53acdb82d408346e6a7b734ca9e5bad
tree020ee9aba5b30c72fdf2e46ee0dcf210afa9427e
parent22ae19c6e3c22b390952e90f452f26adad9b8687
Input: uinput - mark failed submission requests as free

If uinput_request_submit() fails after new request ID was allocated
we need to mark that request ID as free, otherwise it will always
stay occupied and we may run out of available IDs.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/uinput.c