Skip to contentSkip to conversation

staging: ft1000-pcmcia: don't crash on load

PATCH Ondrej Zary 1 participant 1 message Jun 20, 2011 Staging

lore
Share & tools
lore
#0 lore raw

Don't crash with NULL pointer dereference on load because of empty .name.

drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c +1 -3
@@ -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,
Signature · 1 line
Ondrej Zary