From: Hans Verkuil Date: Mon, 11 Oct 2010 15:36:37 +0000 (-0300) Subject: [media] radio-mr800: fix locking order X-Git-Tag: v2.6.37-rc1~64^2~229 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c84d89bf13b702ca0e0db5eb3880300c4bd58f4;p=pandora-kernel.git [media] radio-mr800: fix locking order Don't hold the lock before unregistering the device, since when the device is unregistered the datastruct containing the lock may be freed (if the refcount went to 0). Also fixed the framework documentation that erroneously suggested the wrong locking order as well. Reported-by: David Ellingsworth Signed-off-by: Hans Verkuil Acked-by: David Ellingsworth Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed