1. 21 Sep, 2014 23 commits
  2. 20 Sep, 2014 8 commits
  3. 19 Sep, 2014 9 commits
    • Dan Carpenter's avatar
      staging: vt6655: buffer overflow in ioctl · ed87c2b2
      Dan Carpenter authored
      ->u.generic_elem.len is a user controlled number between 0-255.  We
      should limit it to avoid memory corruption.
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ed87c2b2
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-fixes-3.17a' of... · 922b83b4
      Greg Kroah-Hartman authored
      Merge tag 'iio-fixes-3.17a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus
      
      Jonathan writes:
      
      First round of IIO fixes for the 3.17 cycle.
      
      * Fix an overwritten error return that can prevent deferred probing when
        using of_iio_channel_get_by_name
      * A series that deals with an incorrect reference count when the default
        trigger is set within the main probe routine for a driver.  Can result
        in a double free if the trigger is changed.
      * Fix a buglet with xilinx-xadc concerning setup of the address for an
        aux channel.
      * At91 adc driver could sometimes get a touchscreen reading rather than
        the intended adc channel.  This is fixed by using the channel data register
        instead.
      * Fix some ST magnetometer gain values that differ in production parts from
        the prerelease ones used for driver development.
      922b83b4
    • Mark's avatar
      USB: storage: Add quirks for Entrega/Xircom USB to SCSI converters · c80b4495
      Mark authored
      This patch adds quirks for Entrega Technologies (later Xircom PortGear) USB-
      SCSI converters. They use Shuttle Technology EUSB-01/EUSB-S1 chips. The
      US_FL_SCM_MULT_TARG quirk is needed to allow multiple devices on the SCSI
      chain to be accessed. Without it only the (single) device with SCSI ID 0
      can be used.
      
      The standalone converter sold by Entrega had model number U1-SC25. Xircom
      acquired Entrega and re-branded the product line PortGear. The PortGear USB
      to SCSI Converter (model PGSCSI) is internally identical to the Entrega
      product, but later models may use a different USB ID. The Entrega-branded
      units have USB ID 1645:0007, as does my Xircom PGSCSI, but the Windows and
      Macintosh drivers also support 085A:0028.
      
      Entrega also sold the "Mac USB Dock", which provides two USB ports, a Mac
      (8-pin mini-DIN) serial port and a SCSI port. It appears to the computer as
      a four-port hub, USB-serial, and USB-SCSI converters. The USB-SCSI part may
      have initially used the same ID as the standalone U1-SC25 (1645:0007), but
      later production used 085A:0026.
      
      My Xircom PortGear PGSCSI has bcdDevice=0x0100. Units with bcdDevice=0x0133
      probably also exist.
      
      This patch adds quirks for 1645:0007, 085A:0026 and 085A:0028. The Windows
      driver INF file also mentions 085A:0032 "PortStation SCSI Module", but I
      couldn't find any mention of that actually existing in the wild; perhaps it
      was cancelled before release?
      Signed-off-by: default avatarMark Knibbs <markk@clara.co.uk>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c80b4495
    • Mark's avatar
      USB: storage: Add quirk for Ariston Technologies iConnect USB to SCSI adapter · b6a3ed67
      Mark authored
      Hi,
      
      The Ariston Technologies iConnect 025 and iConnect 050 (also known as e.g.
      iSCSI-50) are SCSI-USB converters which use Shuttle Technology/SCM
      Microsystems chips. Only the connectors differ; both have the same USB ID.
      The US_FL_SCM_MULT_TARG quirk is required to use SCSI devices with ID other
      than 0.
      
      I don't have one of these, but based on the other entries for Shuttle/
      SCM-based converters this patch is very likely correct. I used 0x0000 and
      0x9999 for bcdDeviceMin and bcdDeviceMax because I'm not sure which
      bcdDevice value the products use.
      Signed-off-by: default avatarMark Knibbs <markk@clara.co.uk>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b6a3ed67
    • Mark's avatar
      USB: storage: Add quirk for Adaptec USBConnect 2000 USB-to-SCSI Adapter · 67d365a5
      Mark authored
      The Adaptec USBConnect 2000 is another SCSI-USB converter which uses
      Shuttle Technology/SCM Microsystems chips. The US_FL_SCM_MULT_TARG quirk is
      required to use SCSI devices with ID other than 0.
      
      I don't have a USBConnect 2000, but based on the other entries for Shuttle/
      SCM-based converters this patch is very likely correct. I used 0x0000 and
      0x9999 for bcdDeviceMin and bcdDeviceMax because I'm not sure which
      bcdDevice value the product uses.
      Signed-off-by: default avatarMark Knibbs <markk@clara.co.uk>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      67d365a5
    • Alan Stern's avatar
      USB: EHCI: unlink QHs even after the controller has stopped · 7312b5dd
      Alan Stern authored
      Old code in ehci-hcd tries to expedite disabling endpoints after the
      controller has stopped, by destroying the endpoint's associated QH
      without first unlinking the QH.  This was necessary back when the
      driver wasn't so careful about keeping track of the controller's
      state.
      
      But now we are careful about it, and the driver knows that when the
      controller isn't running, no unlinking delay is needed.  Furthermore,
      skipping the unlink step will trigger a BUG() in qh_destroy() when the
      preceding QH is released, because the link pointer will be non-NULL.
      
      Removing the lines that skip the unlinking step and go directly to
      QH_STATE_IDLE fixes the problem.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Reported-by: default avatarJoe Lawrence <joe.lawrence@stratus.com>
      Tested-by: default avatarJoe Lawrence <joe.lawrence@stratus.com>
      CC: <stable@vger.kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7312b5dd
    • Greg Kroah-Hartman's avatar
      Merge tag 'for_3.17-rc' of... · 2d23d8ba
      Greg Kroah-Hartman authored
      Merge tag 'for_3.17-rc' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy into usb-linus
      
      Kishon writes:
      
      misc fixes in PHY drivers
      2d23d8ba
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · 46be7b73
      Linus Torvalds authored
      Pull btrfs fixes from Chris Mason:
       "I've got a revert to fix a regression with btrfs device registration,
        and Filipe has part two of his fsync fix from last week"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs:
        Revert "Btrfs: device_list_add() should not update list when mounted"
        Btrfs: set inode's logged_trans/last_log_commit after ranged fsync
      46be7b73
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-3.17-5' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 81770f41
      Linus Torvalds authored
      Pull NFS client fixes from Trond Myklebust:
       "Highligts:
         - fix an Oops in nfs4_open_and_get_state
         - fix an Oops in the nfs4_state_manager
         - fix another bug in the close/open_downgrade code"
      
      * tag 'nfs-for-3.17-5' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        NFSv4: Fix another bug in the close/open_downgrade code
        NFSv4: nfs4_state_manager() vs. nfs_server_remove_lists()
        NFS: remove BUG possibility in nfs4_open_and_get_state
      81770f41