This is a note to let you know that I've just added the patch titled Subject: USB: gadget: ethernet error path potential oops fix
to my gregkh-2.6 tree. Its filename is usb-gadget-ethernet-error-path-potential-oops-fix.patch This tree can be found at http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/ >From [EMAIL PROTECTED] Wed Dec 19 12:08:01 2007 From: David Brownell <[EMAIL PROTECTED]> Date: Wed, 19 Dec 2007 11:27:51 -0800 Subject: USB: gadget: ethernet error path potential oops fix To: USB list <linux-usb@vger.kernel.org>, Greg KH <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> Content-Disposition: inline Fix potential (never-observed) oops on rare error path, bugzilla #9594. Fix uses the same test as used earlier. Also make the adjacent "else" block look like an "else" block instead of hiding like a bug. Signed-off-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/gadget/ether.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -1067,19 +1067,19 @@ done: /* on error, disable any endpoints */ if (result < 0) { - if (!subset_active(dev)) + if (!subset_active(dev) && dev->status_ep) (void) usb_ep_disable (dev->status_ep); dev->status = NULL; (void) usb_ep_disable (dev->in_ep); (void) usb_ep_disable (dev->out_ep); dev->in = NULL; dev->out = NULL; - } else + } /* activate non-CDC configs right away * this isn't strictly according to the RNDIS spec */ - if (!cdc_active (dev)) { + else if (!cdc_active (dev)) { netif_carrier_on (dev->net); if (netif_running (dev->net)) { spin_unlock (&dev->lock); Patches currently in gregkh-2.6 which might be from [EMAIL PROTECTED] are usb/usb-convert-ehci-debug-files-to-use-debugfs-instead-of-sysfs.patch usb/usb-convert-ohci-debug-files-to-use-debugfs-instead-of-sysfs.patch usb/usb-ehci-add-separate-iaa-watchdog-timer.patch usb/usb-gadget-pxa2xx_udc-supports-inverted-vbus.patch usb/usb-remove-ohci-useless-masking-unmasking-of-wdh-interrupt.patch usb/usb-device-dma-support-on-omap2.patch usb/usb-s3c2410_udc-minor-irq-handler-cleanups.patch usb/usb-m66592-udc-add-support-for-sh7722-usbf.patch usb/usb-add-missing-space-to-printk-messages.patch usb/usb-add-printer-gadget-driver.patch usb/usb-usb-peripheral-controller-driver-oops-avoidance.patch usb/usb-gadget-at91_udc-minor-fix.patch usb/usb-don-t-change-hc-power-state-for-a-freeze.patch usb/usb-dummy_hcd-don-t-register-drivers-on-the-platform-bus.patch usb/usb-force-handover-port-to-companion-when-hub_port_connect_change-fails.patch usb/usb-gadget-code-switches-to-pr_err-and-friends.patch usb/usb-update-pxa27x-ohci-driver-to-use-clk-support.patch usb/usb-add-marvell-orion-usb-host-support.patch usb/usb-ehci-potential-oops-fix-on-arc-tdi-cores.patch usb/usb-gadget-ethernet-error-path-potential-oops-fix.patch - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html