From: Dan Carpenter Date: Wed, 7 Apr 2010 09:21:05 +0000 (-0300) Subject: V4L/DVB: davinci: don't return under lock on error path X-Git-Tag: v2.6.35-rc1~480^2~219 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b080c5df00e431baec09222aa8d623f0cd77314;p=pandora-kernel.git V4L/DVB: davinci: don't return under lock on error path If the kmalloc() failed for "ccdc_cfg = kmalloc(...);" then we would exit with the lock held. I moved the mutex_lock() below the allocation because it isn't protecting anything in that block and allocations are allocations are sometimes slow. Signed-off-by: Dan Carpenter Acked-by: Vaibhav Hiremath Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed