Input: uinput - unlock on allocation failure in ioctl
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 10 Nov 2017 18:21:53 +0000 (10:21 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 10 Nov 2017 18:29:53 +0000 (10:29 -0800)
commit781f2dd0a5eb8e660c0a5dbb11a69aed72f26657
tree03aa15ba86ca4dbc409f039bc844c6bf639e6252
parent0145a7141e597e14c60f7561add76bea874768b2
Input: uinput - unlock on allocation failure in ioctl

We have to unlock before returning if input_allocate_device() fails.

Fixes: 04ce40a61a91 ("Input: uinput - remove uinput_allocate_device()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/uinput.c