nozomi: fix initialization and early flow control access
authorFrank Seidel <fseidel@suse.de>
Thu, 6 Mar 2008 20:45:57 +0000 (21:45 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 10 Mar 2008 23:33:32 +0000 (16:33 -0700)
commit661b4e89daf10e3f65a1086fd95c7a84720ccdd2
tree0a92f74a1ec6990db333514ed88a9bed5ca6a912
parentef79df263062fd04fe9db4ee1b9f014a87a8e924
nozomi: fix initialization and early flow control access

Due to some flaws in the initialization and flow control
code kernel oopses could be triggered e.g. when accessing
the card too early after insertion.
See e.g. kernel.org bug #10077.
The main part of the fix is a trivial state management
making sure the card is realy ready to use before allowing
any access.

Signed-off-by: Frank Seidel <fseidel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/nozomi.c