From 9c4ffb34c75f682e16aa814132651ac6e754ae0f Mon Sep 17 00:00:00 2001 From: Nicolas Pitre Date: Sun, 17 Oct 2004 19:00:40 -0700 Subject: [PATCH] [PATCH] unbalanced locking in MTD Intel chip driver This obvious missing unlock is screwing the preemption count. Fix was applied to MTD CVS already. Signed-off-by: Nicolas Pitre Signed-off-by: Linus Torvalds --- drivers/mtd/chips/cfi_cmdset_0001.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/chips/cfi_cmdset_0001.c b/drivers/mtd/chips/cfi_cmdset_0001.c index 37c9dcfd96965..6d37d18c63f14 100644 --- a/drivers/mtd/chips/cfi_cmdset_0001.c +++ b/drivers/mtd/chips/cfi_cmdset_0001.c @@ -604,6 +604,8 @@ static void put_chip(struct map_info *map, struct flchip *chip, unsigned long ad spin_unlock(&shared->lock); } } + } else { + spin_unlock(&shared->lock); } switch(chip->oldstate) { -- 2.53.0