commit | caf0e8e028516253afce6e40c52f0c193a221f8a | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Thu Dec 10 14:23:57 2009 +0100 |
committer | David Woodhouse <David.Woodhouse@intel.com> | Thu Dec 10 13:33:53 2009 +0000 |
tree | a3cb81d5c9315bf0a028be6e257af2de1eb28d14 | |
parent | 51eeb878155cdea73e7a1f0372b266018bd7a424 [diff] |
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 <jslaby@suse.cz> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>