1. 30 3月, 2009 7 次提交
  2. 03 1月, 2009 1 次提交
  3. 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
  4. 18 10月, 2008 5 次提交
  5. 12 10月, 2008 1 次提交
  6. 04 9月, 2008 2 次提交
    • A
      V4L/DVB (8842): vivi_release(): fix use-after-free · 8da9bae3
      Adrian Bunk 提交于
      video_device_release() does kfree(), which made the following printk()
      doing a use-after-free.
      
      printk() first and release then.
      Reported-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      8da9bae3
    • M
      V4L/DVB (8751): vivi: Fix some issues at vivi register routine · 980d4f17
      Mauro Carvalho Chehab 提交于
      This patch fixes several small issues at vivi register routines:
      
      1) minor and n_devs should be unsigned;
      2) n_devs = 0 were not properly handled;
      3) if n_devs specify a high number, the driver would just roll back and
      won't register any device. The proper behaviour is to keep all succeded
      devices registered;
      4) both n_devs and minor were using 0 as permissions. Better to have
      them with 0444.
      
      With the current patch, if n_devs specify a very large value, it will
      register all possible devices. For example, on a machine without any
      other V4L drivers loaded, with this patch, we will have something like:
      
      vivi: V4L2 device registered as /dev/video0
      vivi: V4L2 device registered as /dev/video1
      vivi: V4L2 device registered as /dev/video2
      	...
      vivi: V4L2 device registered as /dev/video31
      video_register_device_index: get_index failed
      Video Technology Magazine Virtual Video Capture Board ver 0.5.0 successfully loaded.
      
      5) The number of allocated devices on success is now kept at n_devs:
      
      $ cat /sys/module/vivi/parameters/n_devs
      32
      
      Thanks to Henne <henne@nachtwindheim.de> for pointing that there were
      some issues at vivi.
      
      Cc: Henne <henne@nachtwindheim.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      980d4f17
  7. 27 7月, 2008 1 次提交
  8. 26 7月, 2008 1 次提交
  9. 24 7月, 2008 1 次提交
  10. 20 7月, 2008 3 次提交
  11. 27 6月, 2008 1 次提交
  12. 26 4月, 2008 1 次提交
  13. 25 4月, 2008 5 次提交
  14. 26 1月, 2008 10 次提交