linux-user/syscall.c: do_ioctl_dm: Need to call unlock_user() before going to failure...
commitdec0473dc683ac0ddd7946acdebd285728966a02
authorChen Gang S <gang.chen@sunrus.com.cn>
Sun, 25 Jan 2015 00:00:42 +0000 (25 08:00 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 10 Feb 2015 06:27:20 +0000 (10 09:27 +0300)
tree6e7d73e4e67289591e9c78633b59c9e54fdc66dc
parenta86b3c64d45f2bf306fd4bf879abb4ac21d761f9
linux-user/syscall.c: do_ioctl_dm: Need to call unlock_user() before going to failure return in default case

In abi_long do_ioctl_dm(), after lock_user() call, the code does
not call unlock_user() before going to failure return in default case.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/syscall.c