Commit 3581bbc7 authored by Dave Jones's avatar Dave Jones

[PATCH] cs4232 memleak

parent 0d97b93b
......@@ -382,10 +382,11 @@ static int cs4232_pnp_probe(struct pnp_dev *dev, const struct pnp_id *card_id, c
isapnpcfg->io_base = dev->resource[0].start;
if (probe_cs4232(isapnpcfg,TRUE) == 0) {
printk(KERN_ERR "cs4232: ISA PnP card found, but not detected?\n");
kfree(isapnpcfg);
return -ENODEV;
}
attach_cs4232(isapnpcfg);
dev->driver_data = isapnpcfg;
pci_set_drvdata(dev,isapnpcfg);
return 0;
}
......
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