Re: usb storage cleanup

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Thu Jul 04 2002 - 14:54:32 EST


Em Thu, Jul 04, 2002 at 12:50:12PM -0700, Matthew Dharm escreveu:
> > > Because relying on a pointer has caused problems in the past, especially
> > > when there are concerns that the pointer might be invalid.

> > Could you explain a bit more? How could the pointer become invalid?
 
> There was a large discussion of this in relation to another driver on
> linux-usb-devel... basically, the pointer is just an address to a structure
> owned by an HCD... it's entirely possible for the structure to go away on
> us unexpectedly. We _should_ get the notification via the _disconnect()
> call, but real-world experience showed us that this wasn't always
> happening.

Humm, I believed that USB was using refcounting

- Arnaldo
-
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 : Sun Jul 07 2002 - 22:00:13 EST