[PATCH] Re: dev_get_by_name without dev_put

2001-07-04 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 04, 2001 at 03:49:46PM +0200, [EMAIL PROTECTED] escreveu: > 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). Howeve

dev_get_by_name without dev_put

2001-07-04 Thread fabrizio . gennari
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: f