[MTD] mtdoops: Ensure sequential write to the buffer
authorRichard Purdie <rpurdie@rpsys.net>
Tue, 29 Jan 2008 10:21:56 +0000 (10:21 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 3 Feb 2008 07:18:58 +0000 (18:18 +1100)
commit47c152b88c185c7e97462a35893df6e552075a8c
tree406c19685ebb030af09384bf2b59559a52810c0b
parent6ce0a856c10c8ab8568764436864616efa88e908
[MTD] mtdoops: Ensure sequential write to the buffer

Add a spinlock to ensure writes to the mtdoops buffer memory are
sequential and don't race.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdoops.c