iio: double unlock on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Jul 2012 06:34:00 +0000 (07:34 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 12 Jul 2012 19:00:20 +0000 (20:00 +0100)
commite59b9afecf7ddf52d31d24e800b473f19c23cfe0
tree812dfea07e848bc7b308cdbd50a396689a86705b
parent21fa54e4017fb0ed2107282e6057528ca59b8942
iio: double unlock on error path

We should be holding the mutex when we goto error_free_chans.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/inkern.c