]> git.baikalelectronics.ru Git - kernel.git/commit
[MTD] [NOR] Fix oops in cfi_amdstd_sync
authorVijay Sampath <vsampath@gmail.com>
Tue, 6 Mar 2007 10:39:44 +0000 (02:39 -0800)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 8 Mar 2007 09:22:38 +0000 (09:22 +0000)
commite6a5de9a5d74c8e4a8184884c1c4b19e571e7c26
tree685763f276a1bd3eed77d57599d728d9750b9b09
parent847ab003905682acee95e61319f48112f6df8041
[MTD] [NOR] Fix oops in cfi_amdstd_sync

The files cfi_cmdset_0002.c and cfi_cmdset_0020.c do not initialize their
wait queues like is done in cfi_cmdset_0001.c.  This causes an oops when
the wait queue is accessed.  I have copied the code from cfi_cmdset_0001.c
that is pertinent to initialization of the wait queue.

Signed-off-by: Vijay Sampath <vsampath@gmail.com>
Acked-by: Joern Engel <joern@lazybastard.org>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/chips/cfi_cmdset_0002.c
drivers/mtd/chips/cfi_cmdset_0020.c