1. 26 4月, 2013 1 次提交
  2. 17 4月, 2013 29 次提交
  3. 15 4月, 2013 2 次提交
    • H
      [media] cx25821: the audio channel was registered as a video node · 31b32073
      Hans Verkuil 提交于
      Skip the audio channel when registering the video nodes. This fixes a bug
      where that incorrectly registered 'video' node was never unregistered.
      Note: this bug only surfaces if the video output nodes are enabled again
      after the previous patch disabled them.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      31b32073
    • H
      [media] cx25821: do not expose broken video output streams · a877e277
      Hans Verkuil 提交于
      The cx25821 driver has support for one audio output channel and two video
      output channels.
      This is implemented in a very ugly and very evil way through a custom ioctl
      that passes the filename of a file containing the video data, which is then
      read by the driver itself using vfs.
      There are a number of problems with this:
      1) it's very ugly and very evil (I can't say that often enough).
      2) V4L2 supports video output, so why not use that?
      3) it's very buggy, closing the filehandle through which you passed the ioctl
         will oops the kernel.
      4) it's a nasty security leak since this allows you to load any file in the
         system as a video or audio source, so in theory you can output /etc/passwd
         to audio or video out and record & decode it on another device.
      Because of all these issues we no longer register those output video nodes.
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      a877e277
  4. 24 3月, 2013 4 次提交
  5. 19 3月, 2013 1 次提交
    • P
      [media] cx25821: Cleanup filename assignment code · cab3e1ff
      Peter Senna Tschudin 提交于
      I'm pasting the original code and my proposal on the commit message for
      make it easy to compare the two versions.
      Line 62 of cx25821-audio-upstream.h contains:
      char *_defaultAudioName = "/root/audioGOOD.wav";
      Original code after replace kmemdup for kstrdup, and after fix return error
      code:
      if (dev->input_audiofilename) {
      	dev->_audiofilename = kstrdup(dev->input_audiofilename,
      				      GFP_KERNEL);
      	if (!dev->_audiofilename) {
      		err = -ENOMEM;
      		goto error;
      	}
      	/* Default if filename is empty string */
      	if (strcmp(dev->input_audiofilename, "") == 0)
      		dev->_audiofilename = "/root/audioGOOD.wav";
      } else {
      	dev->_audiofilename = kstrdup(_defaultAudioName,
      				      GFP_KERNEL);
      	if (!dev->_audiofilename) {
      		err = -ENOMEM;
      		goto error;
      	}
      }
      Code proposed in this patch:
      if ((dev->input_audiofilename) &&
          (strcmp(dev->input_audiofilename, "") != 0))
      	dev->_audiofilename = kstrdup(dev->input_audiofilename,
      				      GFP_KERNEL);
      else
      	dev->_audiofilename = kstrdup(_defaultAudioName,
      				      GFP_KERNEL);
      if (!dev->_audiofilename) {
      	err = -ENOMEM;
      	goto error;
      }
      Signed-off-by: NPeter Senna Tschudin <peter.senna@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      cab3e1ff
  6. 09 2月, 2013 1 次提交
  7. 12 1月, 2013 1 次提交
  8. 04 1月, 2013 1 次提交
    • G
      Drivers: media: remove __dev* attributes. · 4c62e976
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4c62e976