staging: gpib: Fix cb7210 pcmcia Oops
PATCH 1/1 staging: gpib: Fix cb7210 pcmcia Oops
The pcmcia_driver struct was still only using the old .name initialization in the drv field. This led to a NULL pointer deref Oops in strcmp called from pcmcia_register_driver.
Initialize the pcmcia_driver struct name field.
Reported-by kernel test robot <[email protected]>
Fixes e9dc69956d4d ("staging: gpib: Add Computer Boards GPIB driver")
Signed-off-by Dave Penkler <[email protected]>
--- drivers/staging/gpib/cb7210/cb7210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/gpib/cb7210/cb7210.c +1 -1
@@ -1347,8 +1347,8 @@ static struct pcmcia_device_id cb_pcmcia_ids[] = {MODULE_DEVICE_TABLE (pcmcia, cb_pcmcia_ids);static struct pcmcia_driver cb_gpib_cs_driver = { + .name ="cb_gpib_cs" , .owner =THIS_MODULE , - .drv = { .name ="cb_gpib_cs" , }, .id_table = cb_pcmcia_ids, .probe = cb_gpib_probe, .remove = cb_gpib_remove,
Signature · 1 line
2.48.1