staging: vchiq_core: Fix missing semaphore release in error case
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 31 Mar 2018 20:09:37 +0000 (22:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:47:16 +0000 (15:47 +0200)
commit8113b89fc615cfb531df0334fb3a091cf6a45ce0
tree41d6b79493c440685238e9485aa11d75a4624eac
parente1c4fa775f63185a80fc175dcec0d9fa07402721
staging: vchiq_core: Fix missing semaphore release in error case

The bail out branch in case of a invalid tx_pos missed a semaphore
release. Dan Carpenter found this with a static checker.

Fixes: d1eab9dec610 ("staging: vchiq_core: Bail out in case of invalid tx_pos")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c