1. 30 5月, 2015 2 次提交
  2. 10 4月, 2015 2 次提交
  3. 08 4月, 2015 1 次提交
  4. 03 4月, 2015 1 次提交
  5. 27 1月, 2015 1 次提交
  6. 25 11月, 2014 6 次提交
  7. 21 10月, 2014 1 次提交
    • L
      [media] v4l: uvcvideo: Fix buffer completion size check · c601f53f
      Laurent Pinchart 提交于
      Commit e93e7fd9 ("v4l2: uvcvideo: Allow
      using larger buffers") reworked the buffer size sanity check at buffer
      completion time to use the frame size instead of the allocated buffer
      size. However, it introduced two bugs in doing so:
      
      - it assigned the allocated buffer size to the frame_size field, instead
        of assigning the correct frame size
      
      - it performed the assignment in the S_FMT handler, resulting in the
        frame_size field being uninitialized if the userspace application
        doesn't call S_FMT.
      
      Fix both issues by removing the frame_size field and validating the
      buffer size against the UVC video control dwMaxFrameSize.
      
      Fixes: e93e7fd9 ("v4l2: uvcvideo: Allow using larger buffers")
      Signed-off-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      c601f53f
  8. 22 9月, 2014 1 次提交
  9. 01 3月, 2014 1 次提交
  10. 09 6月, 2013 1 次提交
  11. 06 2月, 2013 2 次提交
  12. 11 1月, 2013 2 次提交
  13. 24 12月, 2012 1 次提交
    • R
      Partly revert "[media] uvcvideo: Set error_idx properly for extended controls API failures" · 9c016d61
      Rafael J. Wysocki 提交于
      Commit f0ed2ce8 ("[media] uvcvideo: Set error_idx properly for
      extended controls API failures") causes user space to behave incorrectly
      on one of my test machines (there is no sound under KDE 4.9.4 using
      pulseaudio and there is a knotify4 process occupying one of the CPU
      cores 100% of the time).  Reverting that commit entirely fixes the
      problem for me.
      
      However, commit f0ed2ce8 appears to do more than it follows from its
      changelog, because the changelog only says about the changes related to
      ctrls->error_idx, while the commit additionally changes error codes
      returned by various functions in uvc_ctrl.c and uvc_v4l2.c.  It turns
      out that the changes of the returned error codes confuse the user spce,
      so it is sufficient to revert the part of commit f0ed2ce8 not
      mentioned in its changelog to fix the problem.
      
      [ 'ENOENT' is not a valid error return from an ioctl to begin with, and
        I don't understand how anybody ever even thought it would be.  - Linus ]
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
      Cc: Hans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9c016d61
  14. 28 11月, 2012 5 次提交
  15. 16 8月, 2012 1 次提交
  16. 07 7月, 2012 1 次提交
  17. 09 5月, 2012 1 次提交
  18. 08 5月, 2012 2 次提交
  19. 11 4月, 2012 1 次提交
  20. 20 3月, 2012 2 次提交
  21. 11 12月, 2011 2 次提交
  22. 24 9月, 2011 1 次提交
  23. 28 7月, 2011 2 次提交