]> git.hungrycats.org Git - linux/commitdiff
[PATCH] unbalanced locking in MTD Intel chip driver
authorNicolas Pitre <nico@cam.org>
Mon, 18 Oct 2004 02:00:40 +0000 (19:00 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 18 Oct 2004 02:00:40 +0000 (19:00 -0700)
This obvious missing unlock is screwing the preemption count.
Fix was applied to MTD CVS already.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/chips/cfi_cmdset_0001.c

index 37c9dcfd96965d12541805e4e0ae6e209ca84c76..6d37d18c63f1499608fce3bdfc4fb19ea8d32f4d 100644 (file)
@@ -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) {