arm-semi: don't leak 1KB user string lock buffer upon TARGET_SYS_OPEN
authorJim Meyering <meyering@redhat.com>
Wed, 22 Aug 2012 11:55:55 +0000 (13:55 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 22 Aug 2012 15:47:14 +0000 (10:47 -0500)
commit396bef4b3846bf4e80a2bee38e9a2d8554d0f251
treea820a8460063ee624ddf742eaeee5f2557007fdb
parenta7e47d4bfcbf256fae06891a8599950ff8e1b61b
arm-semi: don't leak 1KB user string lock buffer upon TARGET_SYS_OPEN

Always call unlock_user before returning.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-arm/arm-semi.c