1. 24 9月, 2017 3 次提交
  2. 23 9月, 2017 32 次提交
  3. 06 9月, 2017 1 次提交
  4. 05 9月, 2017 4 次提交
    • M
      media: get rid of removed DMX_GET_CAPS and DMX_SET_SOURCE leftovers · 4cd7d6c9
      Mauro Carvalho Chehab 提交于
      Those two ioctls were never used within the Kernel. Still, there
      used to have compat32 code there (and an if #0 block at the core).
      
      Get rid of them.
      
      Fixes: 286fe1ca ("media: dmx.h: get rid of DMX_GET_CAPS")
      Fixes: 13adefbe ("media: dmx.h: get rid of DMX_SET_SOURCE")
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      4cd7d6c9
    • R
      media: Revert "[media] v4l: async: make v4l2 coexist with devicetree nodes in a dt overlay" · 12f92866
      Rob Herring 提交于
      This reverts commit d2180e0c.
      
      The commit was flawed in that if the device_node pointers are different,
      then in fact a different device is present and the device node could be
      different in ways other than full_name.
      
      As Frank Rowand explained:
      
      "When an overlay (1) is removed, all uses and references to the nodes and
      properties in that overlay are no longer valid.  Any driver that uses any
      information from the overlay _must_ stop using any data from the overlay.
      Any driver that is bound to a new node in the overlay _must_ unbind.  Any
      driver that became bound to a pre-existing node that was modified by the
      overlay (became bound after the overlay was applied) _must_ adjust itself
      to account for any changes to that node when the overlay is removed.  One
      way to do this is to unbind when notified that the overlay is about to
      be removed, then to re-bind after the overlay is completely removed.
      
      If an overlay (2) is subsequently applied, a node with the same
      full_name as from overlay (1) may exist.  There is no guarantee
      that overlay (1) and overlay (2) are the same overlay, even if
      that node has the same full_name in both cases."
      
      Also, there's not sufficient overlay support in mainline to actually
      remove and re-apply an overlay to hit this condition as overlays can
      only be applied from in kernel APIs.
      
      Fixes: d2180e0c ("[media] v4l: async: make v4l2 coexist with devicetree nodes in a dt overlay")
      
      Cc: Javier Martinez Canillas <javier@osg.samsung.com>
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      Acked-by: NJavi Merino <javi.merino@kernel.org>
      Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      12f92866
    • S
      media: staging: atomisp: sh_css_calloc shall return a pointer to the allocated space · bfc13351
      Sergei A. Trusov 提交于
      The calloc function returns either a null pointer or a pointer to the
      allocated space. Add the second case that is missed.
      
      Fixes: da22013f ("atomisp: remove indirection from sh_css_malloc")
      Signed-off-by: NSergei A. Trusov <sergei.a.trusov@ya.ru>
      Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      bfc13351
    • S
      media: Revert "[media] lirc_dev: remove superfluous get/put_device() calls" · a607f51e
      Sean Young 提交于
      This reverts commit 5be2b76a.
      
      Only when the lirc device is freed, should we drop our reference to
      rc_dev, else we the rc_dev is freed to early. If userspace has
      a file descriptor open during unplug, it goes bang.
      
      ==================================================================
      BUG: KASAN: use-after-free in __lock_acquire+0x7bb/0x1e10
      Read of size 8 at addr ffff8801d7d61ed0 by task ir-rec/2609
      
      -snip-
       mutex_lock_nested+0x1b/0x20
       ? mutex_lock_nested+0x1b/0x20
       rc_close.part.6+0x20/0x60 [rc_core]
       rc_close+0x13/0x20 [rc_core]
       lirc_dev_fop_close+0x62/0xd0 [lirc_dev]
       __fput+0x236/0x410
       ? fput+0xb0/0xb0
       ? do_raw_spin_trylock+0x110/0x110
       ? set_rq_offline.part.70+0xa0/0xa0
       ____fput+0xe/0x10
       task_work_run+0x116/0x180
       ? task_work_cancel+0x170/0x170
       ? _raw_spin_unlock+0x27/0x40
       ? switch_task_namespaces+0x5f/0x90
       do_exit+0x68b/0xe80
      
      Cc: stable@vger.kernel.org # For Kernel 4.13
      Fixes: 5be2b76a ("[media] lirc_dev: remove superfluous get/put_device() calls")
      Signed-off-by: NSean Young <sean@mess.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      a607f51e