diff options
author | Ondrej Zary <linux@rainbow-software.org> | 2011-07-01 00:03:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-05 10:32:30 -0700 |
commit | 01cafa528da6c5ffd5fe6b756ec11ec317b3f9d3 (patch) | |
tree | 72184dbb586078549dd1d337b97e0946c3560d57 /drivers/staging/ft1000 | |
parent | 378af483331d429bff3318e69f4ff5534f92c750 (diff) | |
download | op-kernel-dev-01cafa528da6c5ffd5fe6b756ec11ec317b3f9d3.zip op-kernel-dev-01cafa528da6c5ffd5fe6b756ec11ec317b3f9d3.tar.gz |
staging: ft1000-pcmcia: don't crash on load
Don't crash with NULL pointer dereference on load because of empty .name.
Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r-- | drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_cs.c index 68ea035..eefaa65 100644 --- 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, |