* staging: ft1000-pcmcia: don't crash on load
@ 2011-06-20 20:45 Ondrej Zary
0 siblings, 0 replies; only message in thread
From: Ondrej Zary @ 2011-06-20 20:45 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Marek Belisko, Kernel development list
Don't crash with NULL pointer dereference on load because of empty .name.
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
--- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c
+++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c
@@ -295,9 +295,7 @@ MODULE_DEVICE_TABLE(pcmcia, ft1000_ids);
static struct pcmcia_driver ft1000_cs_driver = {
.owner = THIS_MODULE,
- .drv = {
- .name = "ft1000_cs",
- },
+ .name = "ft1000_cs",
.probe = ft1000_attach,
.remove = ft1000_detach,
.id_table = ft1000_ids,
--
Ondrej Zary
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-20 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 20:45 staging: ft1000-pcmcia: don't crash on load Ondrej Zary
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.