Commit 425d1013 authored by Stephen Hemminger's avatar Stephen Hemminger

[netdrvr de4x5] NE54-de4x5 - fix missing free on error path - found by viro

parent ba673ffe
...@@ -1237,6 +1237,8 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev) ...@@ -1237,6 +1237,8 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev)
if (lp->useSROM) { if (lp->useSROM) {
lp->state = INITIALISED; lp->state = INITIALISED;
if (srom_infoleaf_info(dev)) { if (srom_infoleaf_info(dev)) {
dma_free_coherent (gendev, lp->dma_size,
lp->rx_ring, lp->dma_rings);
return -ENXIO; return -ENXIO;
} }
srom_init(dev); srom_init(dev);
......
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