staging: nvec: release sync write lock in error case
authorMarc Dietrich <marvin24@gmx.de>
Sun, 19 Aug 2012 17:03:07 +0000 (19:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 20:18:14 +0000 (13:18 -0700)
commit4b8bf03d7f775271c2016e76011b113bc5f83c14
treeaa96df5073ece18b4f3f16cd29e590b02726c226
parent4344379f63d3bf16d4f2cb3d6b3f3be12704173f
staging: nvec: release sync write lock in error case

We forgot to release the sync write lock in case the async write
fails. Found by rpiloose on IRC.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c