mtd: mtdblock: introduce mtdblks_lock
commitd676c11727815761e41a81b00c054b4bec452ae5
authorMatthias Kaehlcke <matthias@kaehlcke.net>
Tue, 14 Jul 2009 20:04:29 +0000 (14 22:04 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 3 Aug 2009 13:25:00 +0000 (3 14:25 +0100)
tree9cdc40a1142010a545e41272a0c3b5ddc0d205fc
parent2bf961b7ccd69e108ac435c67e2b0522b403c578
mtd: mtdblock: introduce mtdblks_lock

The mtdblks array and its content are prone to race conditions. Introduce
the mutex mtdblks_lock in order to solve this.

[Amended by Artem Bityutskiy]

Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdblock.c