Commit 03cf33ae authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix pcmcia crash with hostap

parent 2ebfbd69
...@@ -895,6 +895,10 @@ int pcmcia_access_configuration_register(client_handle_t handle, ...@@ -895,6 +895,10 @@ int pcmcia_access_configuration_register(client_handle_t handle,
c = &s->config[reg->Function]; c = &s->config[reg->Function];
} else } else
c = CONFIG(handle); c = CONFIG(handle);
if (c == NULL)
return CS_NO_CARD;
if (!(c->state & CONFIG_LOCKED)) if (!(c->state & CONFIG_LOCKED))
return CS_CONFIGURATION_LOCKED; return CS_CONFIGURATION_LOCKED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment