1. 23 10月, 2012 21 次提交
  2. 20 10月, 2012 4 次提交
  3. 18 10月, 2012 15 次提交
    • B
      USB: option: add more ZTE devices · 4b35f1c5
      Bjørn Mork 提交于
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4b35f1c5
    • B
      USB: option: blacklist net interface on ZTE devices · 1452df6f
      Bjørn Mork 提交于
      Based on information from the ZTE Windows drivers.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1452df6f
    • A
      usb: host: xhci: New system added for Compliance Mode Patch on SN65LVPE502CP · 47080974
      Alexis R. Cortes 提交于
      This minor change adds a new system to which the "Fix Compliance Mode
      on SN65LVPE502CP Hardware" patch has to be applied also.
      
      System added:
      Vendor: Hewlett-Packard. System Model: Z1
      Signed-off-by: NAlexis R. Cortes <alexis.cortes@ti.com>
      Acked-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      47080974
    • J
      USB: io_ti: fix sysfs-attribute creation · 5d8c61bc
      Johan Hovold 提交于
      Make sure port data is initialised before creating sysfs attributes to
      avoid a race.
      
      A recent patch ("USB: io_ti: fix port-data memory leak") got the
      sysfs-attribute creation and port-data initialisation ordering wrong.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      5d8c61bc
    • J
      USB: iuu_phoenix: fix sysfs-attribute creation · 0978c949
      Johan Hovold 提交于
      Make sure sysfs attributes are created at port probe.
      
      A recent patch ("USB: iuu_phoenix: fix port-data memory leak") removed
      the sysfs-attribute creation by mistake.
      Reported-by: NYuanhan Liu <yuanhan.liu@intel.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0978c949
    • B
      staging: dgrp: check return value of alloc_tty_driver · 178e485a
      Bill Pemberton 提交于
      alloc_tty_driver was always assumed to succeed.  Add code to check the
      return value and return -ENOMEM if alloc_tty_driver fails.
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NBill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      178e485a
    • B
      staging: dgrp: check for NULL pointer in (un)register_proc_table · d7c4660c
      Bill Pemberton 提交于
      register_proc_table and unregister_proc_table didn't deal with the
      possibility that the *table pointer could be NULL.  Check for this and
      return if table is NULL.
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NBill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d7c4660c
    • K
      of/platform: sparse fix · 24fb530f
      Kim Phillips 提交于
      drivers/of/platform.c:110:59: warning: incorrect type in argument 2 (different base types)
      drivers/of/platform.c:110:59:    expected restricted __be32 const [usertype] *addr
      drivers/of/platform.c:110:59:    got unsigned int const [usertype] *[assigned] reg
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      24fb530f
    • K
      of/irq: sparse fixes · d2e41518
      Kim Phillips 提交于
      drivers/of/irq.c:195:57: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:196:51: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:199:57: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:201:58: warning: restricted __be32 degrades to integer
      drivers/of/irq.c:470:37: warning: incorrect type in assignment (different modifiers)
      drivers/of/irq.c:470:37:    expected int ( *[usertype] irq_init_cb )( ... )
      drivers/of/irq.c:470:37:    got void const *const data
      drivers/of/irq.c:96:5: error: symbol 'of_irq_map_raw' redeclared with different type (originally declared at include/linux/of_irq.h:61) - incompatible argument 2 (different base types)
      
      drivers/of/of_pci_irq.c:91:40: warning: incorrect type in argument 2 (different base types)
      drivers/of/of_pci_irq.c:91:40:    expected unsigned int const [usertype] *intspec
      drivers/of/of_pci_irq.c:91:40:    got restricted __be32 *<noident>
      drivers/of/of_pci_irq.c:91:53: warning: incorrect type in argument 4 (different base types)
      drivers/of/of_pci_irq.c:91:53:    expected unsigned int const [usertype] *addr
      drivers/of/of_pci_irq.c:91:53:    got restricted __be32 *<noident>
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      d2e41518
    • K
      of/address: sparse fixes · 47b1e689
      Kim Phillips 提交于
      drivers/of/address.c:66:29: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:66:29:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:66:29:    got unsigned int [usertype] *addr
      drivers/of/address.c:87:32: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:87:32:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:87:32:    got unsigned int [usertype] *addr
      drivers/of/address.c:91:30: warning: incorrect type in assignment (different base types)
      drivers/of/address.c:91:30:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/of/address.c:91:30:    got restricted __be32 [usertype] <noident>
      drivers/of/address.c:92:22: warning: incorrect type in assignment (different base types)
      drivers/of/address.c:92:22:    expected unsigned int [unsigned] [usertype] <noident>
      drivers/of/address.c:92:22:    got restricted __be32 [usertype] <noident>
      drivers/of/address.c:147:35: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:147:35:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:147:35:    got unsigned int [usertype] *addr
      drivers/of/address.c:157:34: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:157:34:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:157:34:    got unsigned int [usertype] *
      drivers/of/address.c:256:29: warning: restricted __be32 degrades to integer
      drivers/of/address.c:256:36: warning: restricted __be32 degrades to integer
      drivers/of/address.c:262:34: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:262:34:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:262:34:    got unsigned int [usertype] *
      drivers/of/address.c:372:41: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:372:41:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:372:41:    got unsigned int [usertype] *addr
      drivers/of/address.c:395:53: warning: incorrect type in argument 2 (different base types)
      drivers/of/address.c:395:53:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:395:53:    got unsigned int [usertype] *addr
      drivers/of/address.c:443:50: warning: incorrect type in argument 2 (different base types)
      drivers/of/address.c:443:50:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:443:50:    got unsigned int *<noident>
      drivers/of/address.c:455:49: warning: incorrect type in argument 1 (different base types)
      drivers/of/address.c:455:49:    expected restricted __be32 const [usertype] *cell
      drivers/of/address.c:455:49:    got unsigned int *<noident>
      drivers/of/address.c:480:60: warning: incorrect type in argument 2 (different base types)
      drivers/of/address.c:480:60:    expected restricted __be32 const [usertype] *addr
      drivers/of/address.c:480:60:    got unsigned int *<noident>
      drivers/of/address.c:412:5: warning: symbol '__of_translate_address' was not declared. Should it be static?
      drivers/of/address.c:520:14: error: symbol 'of_get_address' redeclared with different type (originally declared at include/linux/of_address.h:22) - different base types
      Signed-off-by: NKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: NRob Herring <rob.herring@calxeda.com>
      47b1e689
    • J
      USB: spcp8x5: fix port-data memory leak · bf90ff5f
      Johan Hovold 提交于
      Fix port-data memory leak by replacing attach and release with
      port_probe and port_remove.
      
      Since commit 0998d063 (device-core: Ensure drvdata = NULL when no
      driver is bound) the port private data is no longer freed at release as
      it is no longer accessible.
      
      Compile-only tested.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bf90ff5f
    • J
      USB: ssu100: fix port-data memory leak · 638b9e15
      Johan Hovold 提交于
      Fix port-data memory leak by replacing attach and release with
      port_probe and port_remove.
      
      Since commit 0998d063 (device-core: Ensure drvdata = NULL when no
      driver is bound) the port private data is no longer freed at release as
      it is no longer accessible.
      
      Compile-only tested.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      638b9e15
    • J
      USB: ti_usb_3410_5052: fix port-data memory leak · 51ef847d
      Johan Hovold 提交于
      Fix port-data memory leak by moving port data allocation and
      deallocation to port_probe and port_remove.
      
      Since commit 0998d063 (device-core: Ensure drvdata = NULL when no
      driver is bound) the port private data is no longer freed at release as
      it is no longer accessible.
      
      Compile-only tested.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      51ef847d
    • J
      USB: oti6858: fix port-data memory leak · 289b076f
      Johan Hovold 提交于
      Fix port-data memory leak by replacing attach and release with
      port_probe and port_remove.
      
      Since commit 0998d063 (device-core: Ensure drvdata = NULL when no
      driver is bound) the port private data is no longer freed at release as
      it is no longer accessible.
      
      Compile-only tested.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      289b076f
    • J
      USB: iuu_phoenix: fix port-data memory leak · 53636555
      Johan Hovold 提交于
      Fix port-data memory leak by replacing attach and release with
      port_probe and port_remove.
      
      Since commit 0998d063 (device-core: Ensure drvdata = NULL when no
      driver is bound) the port private data is no longer freed at release as
      it is no longer accessible.
      
      Compile-only tested.
      
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NJohan Hovold <jhovold@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      53636555