1. 01 12月, 2008 1 次提交
  2. 27 11月, 2008 1 次提交
    • J
      ALSA: sound/pci/mixart/mixart.c: Add missing snd_card_free · 73f6a12e
      Julia Lawall 提交于
      The function snd_mixart_create creates a link between mgr and card that
      allows snd_mixart_free to free card as well.  But if snd_mixart_create
      fails, then the link has not been created and card has to be freed explicitly.
      
      The semantic match that finds the problem is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression x;
      statement S,S1;
      position p1,p2,p3;
      expression E,E1;
      type T,T1;
      expression *ptr != NULL;
      @@
      
      (
       if ((x@p1 = snd_card_new(...)) == NULL) S
      |
       x@p1 = snd_card_new(...);
      )
       ... when != snd_card_free(...,(T)x,...)
           when != if (...) { <+... snd_card_free(...,(T)x,...) ...+> }
           when != true x == NULL || ...
           when != x = E
           when != E = (T)x
           when any
      (
       if (x == NULL || ...) S1
      |
       if@p2 (...) {
        ... when != snd_card_free(...,(T1)x,...)
            when != if (...) { <+... snd_card_free(...,(T1)x,...) ...+> }
            when != x = E1
            when != E1 = (T1)x
      (
        return \(0\|<+...x...+>\|ptr\);
      |
        return@p3 ...;
      )
      }
      )
      
      @ script:python @
      p1 << r.p1;
      p3 << r.p3;
      @@
      
      print "* file: %s snd_card_new: %s return: %s" % (p1[0].file,p1[0].line,p3[0].line)
      
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      73f6a12e
  3. 06 11月, 2008 1 次提交
  4. 03 11月, 2008 1 次提交
  5. 01 11月, 2008 1 次提交
  6. 30 10月, 2008 2 次提交
  7. 29 10月, 2008 1 次提交
  8. 27 10月, 2008 1 次提交
  9. 24 10月, 2008 1 次提交
  10. 22 10月, 2008 1 次提交
  11. 21 10月, 2008 1 次提交
  12. 20 10月, 2008 2 次提交
  13. 19 10月, 2008 1 次提交
  14. 15 10月, 2008 6 次提交
  15. 14 10月, 2008 1 次提交
    • M
      ALSA: hda: fix nid variable warning · d21995e3
      Matthew Ranostay 提交于
      Fixed compiler warning with possible uninitialized variable 'nid'.
      
        CC [M]  /home/mranostay/git/alsa-driver/pci/hda/patch_sigmatel.o
      /home/mranostay/git/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c: In function
      ‘stac92xx_parse_auto_config’:
      /home/mranostay/git/alsa-driver/pci/hda/../../alsa-kernel/pci/hda/patch_sigmatel.c:2815: warning: ‘nid’ may be used
      uninitialized in this function
      Signed-off-by: NMatthew Ranostay <mranostay@embeddedalley.com>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      d21995e3
  16. 13 10月, 2008 3 次提交
  17. 10 10月, 2008 15 次提交