1. 30 12月, 2008 2 次提交
  2. 22 10月, 2008 1 次提交
    • H
      V4L/DVB (9327): v4l: use video_device.num instead of minor in video%d · c6330fb8
      Hans Verkuil 提交于
      The kernel number of a v4l2 node (e.g. videoX, radioX or vbiX) is now
      independent of the minor number. So instead of using the minor field
      of the video_device struct one has to use the num field: this always
      contains the kernel number of the device node.
      
      I forgot about this when I did the v4l2 core change, so this patch
      converts all drivers that use it in one go. Luckily the change is
      trivial.
      
      Cc: michael@mihu.de
      Cc: mchehab@infradead.org
      Cc: corbet@lwn.net
      Cc: luca.risolia@studio.unibo.it
      Cc: isely@pobox.com
      Cc: pe1rxq@amsat.org
      Cc: royale@zerezo.com
      Cc: mkrufky@linuxtv.org
      Cc: stoth@linuxtv.org
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c6330fb8
  3. 12 10月, 2008 1 次提交
  4. 04 9月, 2008 2 次提交
  5. 27 7月, 2008 1 次提交
  6. 26 7月, 2008 1 次提交
  7. 24 7月, 2008 1 次提交
  8. 25 4月, 2008 1 次提交
  9. 22 10月, 2007 1 次提交
  10. 10 10月, 2007 1 次提交
  11. 19 7月, 2007 1 次提交
  12. 13 2月, 2007 1 次提交
  13. 01 7月, 2006 1 次提交
  14. 25 6月, 2006 2 次提交
    • J
      V4L/DVB (4154): Fix use-after-free bug in cpia2 driver · bafefc0c
      Jesper Juhl 提交于
      The coverity checker detected a use-after-free error in
      drivers/media/video/cpia2/cpia2_v4l.c::cpia2_close() (coverity
      error #1281).
      What happens is that we lock cam->busy_lock, then proceed to free
      resources, and in the case of (--cam->open_count == 0) we finish off by
      doing a kfree(cam) and then at the end of the function we do a
      mutex_unlock(&cam->busy_lock) which will explode since it'll dereference
      the free'd `cam' :
      ...
      mutex_lock(&cam->busy_lock);
      ...
      if (--cam->open_count == 0) {
          ...
          if (!cam->present) {
              video_unregister_device(dev);
              kfree(cam);
          }
      }
      mutex_unlock(&cam->busy_lock);   <--- PROBLEM, cam no longer around.
      ...
      Since this only happens in the case of open_count going down to zero I
      don't see a problem with just releasing the mutex after unregistering the
      device and just before the kfree().  In this case there is nothing around
      that we can race against; we are in the release method, open_count is zero,
      (!cam->present) and the device has just been unregistered, so letting go of
      the mutex at this point looks safe to me.
      Patch below to implement that solution.
      Acked-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      bafefc0c
    • T
      657de3cd
  15. 25 3月, 2006 1 次提交
  16. 08 3月, 2006 1 次提交
  17. 03 3月, 2006 1 次提交
  18. 27 2月, 2006 1 次提交
    • A
      V4L/DVB (3376): Add cpia2 camera support · ab33d507
      Alan Cox 提交于
      There has been a CPIA2 driver out of kernel for a long time and it has
      been pretty clean for some time too. This is an import of the
      sourceforge driver which has been stripped of
      - 2.4 back compatibility
      - 2.4 old style MJPEG ioctls
      A couple of functions have been made static and the docs have been
      repackaged into Documentation/video4linux.  The rvmalloc/free functions now
      match the cpia driver again.  Other than that this is the code as is.
      Tested on x86-64 with a QX5 microscope.
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      ab33d507