Commit d3233d6b authored by Dave Jones's avatar Dave Jones Committed by Jeff Garzik

[netdrvr sunqe] remove incorrect kfree()

Use of init_etherdev's second argument causes the ->priv member
to be allocated at the same time as the struct net_device
itself.  Therefore, no additional kfree() is needed for the
struct net_device ->priv member in this case.
parent 5c3e9578
......@@ -924,7 +924,6 @@ static int __init qec_ether_init(struct net_device *dev, struct sbus_dev *sdev)
sizeof(struct sunqe_buffers),
qe->buffers,
qe->buffers_dvma);
kfree(qe_devs[i]->priv);
}
kfree(qe_devs[i]);
}
......
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