1. 22 3月, 2011 1 次提交
    • P
      [media] ivtv: yuv: handle get_user_pages() -errno returns · 7fd4b41f
      Paul Cassella 提交于
      get_user_pages() may return -errno, such as -EFAULT.  So don't blindly use
      its return value as an offset into dma->map[] for the next get_user_pages()
      call.  Since we'll give up and return an error if either fails, don't even
      make the second call if the first failed to give us exactly what we were
      looking for.
      
      The old code would also call put_page() on as many elements of dma->map[]
      as we'd asked for, regardless of how many were valid.
      
      [Andy Walls modified this patch to return -EFAULT instead of -EINVAL
      as Paul's observation "I'm not sure -EINVAL is the best return code vs
      -EFAULT or -ENOMEM, [...]" was correct.  The return value bubbles up
      as a return code for write(), for which the V4L2 API spec indicates
      EINVAL is incorrect and EFAULT is correct.]
      Signed-off-by: NPaul Cassella <fortytwo-ivtv@maneteren.bigw.org>
      Signed-off-by: NAndy Walls <awalls@md.metrocast.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      7fd4b41f
  2. 10 5月, 2009 1 次提交
  3. 30 3月, 2009 1 次提交
  4. 13 10月, 2008 1 次提交
  5. 05 6月, 2008 1 次提交
  6. 14 5月, 2008 1 次提交
  7. 29 4月, 2008 1 次提交
    • H
      media: fix integer as NULL pointer warnings · a6a3a17b
      Harvey Harrison 提交于
      drivers/media/video/v4l2-common.c:719:16: warning: Using plain integer as NULL pointer
      drivers/media/video/au0828/au0828-dvb.c:122:19: warning: Using plain integer as NULL pointer
      drivers/media/video/ivtv/ivtv-yuv.c:1101:22: warning: Using plain integer as NULL pointer
      drivers/media/video/ivtv/ivtv-yuv.c:1102:23: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-audio.c:78:39: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-video-v4l.c:84:39: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-v4l2.c:1264:9: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-context.c:197:28: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-cx2584x-v4l.c:126:39: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-dvb.c:133:32: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-dvb.c:145:31: warning: Using plain integer as NULL pointer
      drivers/media/video/pvrusb2/pvrusb2-dvb.c:177:55: warning: Using plain integer as NULL pointer
      drivers/media/video/videobuf-core.c:100:9: warning: Using plain integer as NULL pointer
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a6a3a17b
  8. 25 4月, 2008 2 次提交
  9. 26 1月, 2008 5 次提交
  10. 22 10月, 2007 2 次提交
  11. 10 10月, 2007 7 次提交
  12. 28 4月, 2007 4 次提交