Actually this patch was from David Miller, not me.

Greg KH wrote:
> # This is a BitKeeper generated patch for the following project:
> # Project Name: Linux kernel tree
> # This patch format is intended for GNU patch command version 2.5 or higher.
> # This patch includes the following deltas:
> #                ChangeSet    1.579.9.2 -> 1.579.9.3
> #     drivers/usb/core/usb.c  1.85    -> 1.86   
> #
> # The following is the BitKeeper ChangeSet Log
> # --------------------------------------------
> # 02/09/23    [EMAIL PROTECTED]     1.579.9.3
> # [PATCH] USB shutdown oopser
> # 
> # is it guarenteed that callers have zero'd out the device
> # before this is invoked?  Else the following is necessary to
> # prevent potential OOPS's derefencing interface->dev.driver in
> # the generic device layer.
> # --------------------------------------------
> #
> diff -Nru a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
> --- a/drivers/usb/core/usb.c  Mon Sep 23 15:16:04 2002
> +++ b/drivers/usb/core/usb.c  Mon Sep 23 15:16:04 2002
> @@ -1142,6 +1142,7 @@
>               struct usb_interface_descriptor *desc = interface->altsetting;
>  
>               interface->dev.parent = &dev->dev;
> +             interface->dev.driver = NULL;
>               interface->dev.bus = &usb_bus_type;
>               sprintf (&interface->dev.bus_id[0], "%d-%s:%d",
>                        dev->bus->busnum, dev->devpath,
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> [EMAIL PROTECTED]
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
> 





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to