> Hi rminming, > > try_module_get is designed to ensure that you don't call a function inside a > module without a reference. Like any reference function, it cannot handle > the case where the argument is invalid (or invalidated partway through the > call). > > In this case, the module pointer is usually inside a registered structure. > The pointer will be valid until the structure is unregistered, which the > calling code presumably prevents while it's doing a lookup. > > Hope that clarifies, > Rusty. >
Hi Rusty, Thank you so much! I think you mean that this situation can really happen, because this is a reference function, but it is so seldom, and the common result of this situation is a kernel oops, it's not very important. Am I right? Sorry about later reply, thanks again. Best wishes, rmingming -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/