Staging: iio: release locks on error paths
authorDan Carpenter <error27@gmail.com>
Thu, 30 Jun 2011 09:01:31 +0000 (12:01 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jul 2011 03:34:58 +0000 (20:34 -0700)
commit85ee35e50d9d416cbe76e8af2b216e1760241400
tree0826be760f45bb8adab40c0685212c7956c5f594
parent7bcf302ff151da6559261bc73e8b9d1ae31cc0bb
Staging: iio: release locks on error paths

There are a couple places here where we should have called
mutex_unlock() before returning.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/accel/adis16201_core.c