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

Alan Stern <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, 24 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);
> 
> 
> I thought so too, untill you look at the 2.6.22.5 release, which already
> has that change in it for some reason.
> 
> So that part of the patch drops out, it turns out you just reverted
> things back to the way things used to be here :)

I don't understand.  The history for stable/linux-2.6.22.y.git at
http://git.kernel.org shows that the commit for my patch, labelled

	6b30a4e1c357410a78d7bcb831743b0e99bab4ad,

includes both hunks.  And patch-2.6.22.5.bz2 includes both as well.  
Something's fishy.

Alan Stern
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.