1. 24 3月, 2013 1 次提交
  2. 23 3月, 2013 9 次提交
  3. 19 3月, 2013 2 次提交
    • 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
    • S
      [media] media: ivtv: Remove redundant NULL check before kfree · 18552ea1
      Syam Sidhardhan 提交于
      kfree on NULL pointer is a no-op.
      Signed-off-by: NSyam Sidhardhan <s.syam@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      18552ea1
  4. 06 3月, 2013 20 次提交
  5. 23 2月, 2013 1 次提交
  6. 12 2月, 2013 1 次提交
  7. 09 2月, 2013 2 次提交
  8. 07 2月, 2013 1 次提交
  9. 06 2月, 2013 3 次提交