From: Dan Carpenter Date: Thu, 26 May 2011 08:52:01 +0000 (-0300) Subject: [media] rc: double unlock in rc_register_device() X-Git-Tag: v3.1-rc1~116^2~399 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0528f354cfb98d8df32a76302ec07af1aa29dbd4;p=pandora-kernel.git [media] rc: double unlock in rc_register_device() If change_protocol() fails and we goto out_raw, then it calls unlock twice. I noticed that the other time we called change_protocol() we held the &dev->lock, so I changed it to hold it here too. Reviewed-by: Jarod Wilson Acked-by: Jarod Wilson Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed