From: Jiri Slaby Date: Thu, 10 Dec 2009 13:23:57 +0000 (+0100) Subject: mtd: cfi_cmdset_0002, fix lock imbalance X-Git-Tag: v2.6.33-rc1~66^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caf0e8e028516253afce6e40c52f0c193a221f8a;p=pandora-kernel.git mtd: cfi_cmdset_0002, fix lock imbalance Stanse found a double unlock in get_chip. get_chip is called with chip->mutex held and caller is responsible for unlocking it too. Do not unlock the lock in get_chip on a fail path. This would mean a double unlock. Signed-off-by: Jiri Slaby Signed-off-by: David Woodhouse --- Reading git-diff-tree failed