From: Dan Carpenter Date: Sat, 13 Nov 2010 09:05:32 +0000 (+0300) Subject: Staging: iio/dds: double locking bugs X-Git-Tag: v2.6.38-rc1~423^2~281 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59a126418b96e9f5337d431e6024a8d50bbd6e4e;p=pandora-kernel.git Staging: iio/dds: double locking bugs This is a static checker patch and I don't have this hardware. This code is unusual because while I've often seen a double lock, this is the first time I've seen code that takes a lock 11 times in a row. I feel like I must have missed something. But I've looked very carefully I don't see any way the original code is correct. Does spi_sync() somehow release the lock in a way that I can't see? Even if it does, the locking would still be wrong. Signed-off-by: Dan Carpenter Acked-by: Michael Hennerich Acked-by: Cliff Cai Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed