netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The recent free_netdev() conversion...
@ 2003-09-01 14:59 Jeff Garzik
  2003-09-01 14:53 ` David S. Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Garzik @ 2003-09-01 14:59 UTC (permalink / raw)
  To: Maillist netdev

Note that a lot of error paths were not caught.  In the typical driver 
you have:

->probe()

	dev = alloc_etherdev()
	blah_probe()
	if blah_probe() fails
		goto err_out
	register_netdev()
	return 0;

     err_out:
	kfree(dev);


->remove()
	free_netdev(dev);



The "kfree" needs to be a free_netdev() too.

	Jeff

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-09-04  3:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-01 14:59 The recent free_netdev() conversion Jeff Garzik
2003-09-01 14:53 ` David S. Miller
2003-09-01 15:58   ` Jeff Garzik
2003-09-01 15:58     ` David S. Miller
2003-09-03 22:33       ` [PATCH] 2.6.0-test4-bk5 - Was: " Francois Romieu
2003-09-04  0:56         ` Jeff Garzik
2003-09-04  3:35         ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).