diff options
author | Tim Sell <Timothy.Sell@unisys.com> | 2016-04-08 09:21:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-11 21:15:51 -0700 |
commit | 4145ba76b1f7f3296cc673c299084145e1267029 (patch) | |
tree | a6f868ef06915442258bab975425fd4f9379649c /drivers/iio/potentiometer/Kconfig | |
parent | 6fac083b8df8450af4550238faa104396ccecf13 (diff) | |
download | talos-op-linux-4145ba76b1f7f3296cc673c299084145e1267029.tar.gz talos-op-linux-4145ba76b1f7f3296cc673c299084145e1267029.zip |
staging: unisys: visornic: prevent double-unlock of priv_lock
Previously, devdata->priv_lock was being unlocked in visornic_serverdown()
both before calling visornic_serverdown_complete(), then again at the end
of the function. This bug was corrected.
The structure of visornic_serverdown() was also improved to make it easier
to follow and to decrease the chance that such bugs will be introduced
again. The main-path logic now falls thru down the left-side of the page,
with a common error-exit point to handle error conditions.
Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/potentiometer/Kconfig')
0 files changed, 0 insertions, 0 deletions