linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dev_get_by_name without dev_put
@ 2001-07-04 13:49 fabrizio.gennari
  2001-07-04 14:06 ` [PATCH] " Arnaldo Carvalho de Melo
  2001-07-10  0:36 ` David S. Miller
  0 siblings, 2 replies; 3+ messages in thread
From: fabrizio.gennari @ 2001-07-04 13:49 UTC (permalink / raw)
  To: linux-kernel

Every time dev_get_by_name is called, and it has returned a valid struct net_device*, dev_put should be called afterwards, because otherwise the machine hangs when the device is unregistered (since dev->refcnt > 1). However, it seems that some drivers do
not call dev_put after dev_get_by_name: for example, drivers/net/pppoe.c at line 573 and net/core/dv.c at line 168. Am I wrong?
---------------------------------------------------------
Fabrizio Gennari          tel. +39 039 203 7816
Philips Research Monza    fax. +39 039 203 7800
via G. Casati 23          fabrizio.gennari@philips.com
20052 Monza (MI) Italy    http://www.research.philips.com


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

end of thread, other threads:[~2001-07-10  0:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-04 13:49 dev_get_by_name without dev_put fabrizio.gennari
2001-07-04 14:06 ` [PATCH] " Arnaldo Carvalho de Melo
2001-07-10  0:36 ` 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).