1. 19 Jun, 2013 37 commits
  2. 30 May, 2013 3 commits
    • Ben Hutchings's avatar
      Linux 3.2.46 · a2d09e92
      Ben Hutchings authored
      a2d09e92
    • Richard Weinberger's avatar
      um: Serve io_remap_pfn_range() · 8cd656db
      Richard Weinberger authored
      commit 4d94d6d0 upstream.
      
      At some places io_remap_pfn_range() is needed.
      UML has to serve it like all other archs do.
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      8cd656db
    • Ian Abbott's avatar
      staging: comedi: prevent auto-unconfig of manually configured devices · 2e4b4830
      Ian Abbott authored
      commit 7d3135af upstream.
      
      When a low-level comedi driver auto-configures a device, a `struct
      comedi_dev_file_info` is allocated (as well as a `struct
      comedi_device`) by `comedi_alloc_board_minor()`.  A pointer to the
      hardware `struct device` is stored as a cookie in the `struct
      comedi_dev_file_info`.  When the low-level comedi driver
      auto-unconfigures the device, `comedi_auto_unconfig()` uses the cookie
      to find the `struct comedi_dev_file_info` so it can detach the comedi
      device from the driver, clean it up and free it.
      
      A problem arises if the user manually unconfigures and reconfigures the
      comedi device using the `COMEDI_DEVCONFIG` ioctl so that is no longer
      associated with the original hardware device.  The problem is that the
      cookie is not cleared, so that a call to `comedi_auto_unconfig()` from
      the low-level driver will still find it, detach it, clean it up and free
      it.
      
      Stop this problem occurring by always clearing the `hardware_device`
      cookie in the `struct comedi_dev_file_info` whenever the
      `COMEDI_DEVCONFIG` ioctl call is successful.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      2e4b4830