dma: coh901318: avoid unbalanced locking
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 14 Feb 2013 09:00:17 +0000 (11:00 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 14 Feb 2013 14:30:53 +0000 (20:00 +0530)
commit4168d0d9d304f184f786b1f00750557b8e09453c
tree7385fb072673f5934cb08f79faeecc9829a32674
parent978c4172af48f0adc082f8b1d94acb817d947730
dma: coh901318: avoid unbalanced locking

In case the len is 0 we must return without trying to unlock the lock that was
not locked.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/coh901318_lli.c