1. 28 Oct, 2005 1 commit
    • David Brownell's avatar
      [PATCH] remove some USB_SUSPEND dependencies · 8ad7fe16
      David Brownell authored
      
      This simplifies some of the PM-related #ifdeffing by recognizing
      that USB_SUSPEND depends on PM.  Also, OHCI drivers were often
      testing for USB_SUSPEND when they should have tested just PM.
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      
       drivers/usb/core/hcd.c          |    2 ++
       drivers/usb/host/ohci-hcd.c     |    2 +-
       drivers/usb/host/ohci-hub.c     |    4 ++--
       drivers/usb/host/ohci-omap.c    |    2 +-
       drivers/usb/host/ohci-pci.c     |    2 +-
       drivers/usb/host/ohci-ppc-soc.c |    4 ++--
       drivers/usb/host/ohci-pxa27x.c  |    2 +-
       drivers/usb/host/ohci-s3c2410.c |    3 +--
       drivers/usb/host/ohci-sa1111.c  |    2 +-
       9 files changed, 12 insertions(+), 11 deletions(-)
      8ad7fe16
  2. 12 Sep, 2005 1 commit
  3. 12 Jul, 2005 1 commit
    • KAMBAROV, ZAUR's avatar
      [PATCH] USB: coverity: (desc->bitmap)[] overrun fix · b2134bcd
      KAMBAROV, ZAUR authored
      The length of the array desc->bitmap is 3, and not 4:
      
      Definitions involved:
      
      In drivers/usb/core/hcd.h
      
      464  	#define bitmap 	DeviceRemovable
      
      In drivers/usb/host/ohci-hub.c
      
      395  		struct usb_hub_descriptor	*desc
      
      In drivers/usb/core/hub.h
      
      130  	struct usb_hub_descriptor {
      131  		__u8  bDescLength;
      132  		__u8  bDescriptorType;
      133  		__u8  bNbrPorts;
      134  		__u16 wHubCharacteristics;
      135  		__u8  bPwrOn2PwrGood;
      136  		__u8  bHubContrCurrent;
      137  		    	/* add 1 bit for hub status change; round to bytes */
      138  		__u8  DeviceRemovable[(USB_MAXCHILDREN + 1 + 7) / 8];
      139  		__u8  PortPwrCtrlMask[(USB_MAXCHILDREN + 1 + 7) / 8];
      140  	} __attribute__ ((packed));
      
      In include/linux/usb.h
      
      306  	#define USB_MAXCHILDREN		(16)
      
      This defect was found automatically by Coverity Prevent, a static analysis
      tool.
      
      (akpm: this code should be shot.  Field `bitmap' doesn't exist in struct
      usb_hub_descriptor.  And this .c file is #included in
      drivers/usb/host/ohci-hc...
      b2134bcd
  4. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4