* Greg KH (greg@kroah.com) wrote:
> On Wed, Jun 18, 2003 at 04:32:37PM -0700, Chris Wright wrote:
> > I'm not sure testing a valid ->next makes sense. It could be non-NULL,
> > but poison, or if it was using list_del_init, it would be stuck in loop.
>
> When we take the devices off of the list, after list_del(), still under
> the lock, we can null out the list pointers. Then, later under the
> lock, we can check the pointer before we move to it. We aren't doing
> fancy list_* functions with the pci device lists at all.
Ah, ok, that should work.
thanks,
-chris
-- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:27 EST