Re: [patch 25/28] USB: cdc-acm: fix sysfs attribute registration bug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Stern
Date: Friday, August 24, 2007 - 6:59 am

On Thu, 23 Aug 2007, Greg KH wrote:


Odd.  This doesn't include the entire patch; the second hunk is
missing.  It should go on to say:

@@ -1109,10 +1113,12 @@ static void acm_disconnect(struct usb_interface *intf)
 		return;
 	}
 	if (acm->country_codes){
-		device_remove_file(&intf->dev, &dev_attr_wCountryCodes);
-		device_remove_file(&intf->dev, &dev_attr_iCountryCodeRelDate);
+		device_remove_file(&acm->control->dev,
+				&dev_attr_wCountryCodes);
+		device_remove_file(&acm->control->dev,
+				&dev_attr_iCountryCodeRelDate);
 	}
-	device_remove_file(&intf->dev, &dev_attr_bmCapabilities);
+	device_remove_file(&acm->control->dev, &dev_attr_bmCapabilities);
 	acm->dev = NULL;
 	usb_set_intfdata(acm->control, NULL);
 	usb_set_intfdata(acm->data, NULL);

Alan Stern

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/28] 2.6.22-stable review cycle again, Greg KH, (Thu Aug 23, 3:18 pm)
[patch 03/28] sky2: dont clear phy power bits, Greg KH, (Thu Aug 23, 3:26 pm)
[patch 11/28] Fix soft-fp underflow handling., Greg KH, (Thu Aug 23, 3:26 pm)
[patch 20/28] PPP: Fix PPP buffer sizing., Greg KH, (Thu Aug 23, 3:27 pm)
[patch 22/28] PCI: disable MSI on RS690, Greg KH, (Thu Aug 23, 3:27 pm)
[patch 23/28] PCI: disable MSI on RD580, Greg KH, (Thu Aug 23, 3:27 pm)
[patch 24/28] PCI: disable MSI on RX790, Greg KH, (Thu Aug 23, 3:27 pm)
Re: [patch 25/28] USB: cdc-acm: fix sysfs attribute regist ..., Alan Stern, (Fri Aug 24, 6:59 am)
Re: [patch 00/28] 2.6.22-stable review cycle again, Thomas Backlund, (Wed Aug 29, 12:43 pm)
Re: [patch 00/28] 2.6.22-stable review cycle again, Willy Tarreau, (Wed Aug 29, 1:03 pm)