Re: [PATCH 2.5.67] Update VLAN to new module semantics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   From: Stephen Hemminger <shemminger@osdl.org>
   Date: Tue, 8 Apr 2003 11:28:05 -0700

    	/* NOTE:  We have a reference to the real device,
    	 * so hold on to the reference.
    	 */
   -	MOD_INC_USE_COUNT; /* Add was a success!! */
   +	try_module_get(THIS_MODULE);
   +

You have to check the return value and error accordingly.
The administrator can do a waiting module unload which causes
all try_module_get()'s to fail so that no new references can
be added to the module.

Please, if you're going to convert things, do it correctly.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux