1. 17 6月, 2009 1 次提交
  2. 07 2月, 2008 1 次提交
    • J
      drivers/video: add missing pci_dev_get · 625fcaf9
      Julia Lawall 提交于
      pci_get_device does a pci_dev_get, so pci_dev_put needs to be called in an
      error case
      
      The problem was fixed using the following semantic patch.
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @exists@
      type T1,T2;
      identifier E;
      statement S,S1;
      expression x1,x2,x3;
      expression test;
      int ret != 0;
      @@
      
        struct pci_dev *E;
        ...
      (
        E = \(pci_get_slot\|pci_get_device\|pci_get_bus_and_slot\)(...);
        if (E == NULL) S
      |
        if ((E = \(pci_get_slot\|pci_get_device\|pci_get_bus_and_slot\)(...)) == NULL) S
      )
        ... when != pci_dev_put(...,(T1)E,...)
            when != if (E != NULL) { ... pci_dev_put(...,(T1)E,...); ...}
            when != x1 = (T1)E
            when != E = x3;
            when any
      (
        if (E == NULL) S1
      |
        if (test)
      +   {
      (
      +   pci_dev_put(E);
          return;
      |
      +   pci_dev_put(E);
          return ret;
      )
      +   }
      |
        if (test) {
          ... when != pci_dev_put(...,(T2)E,...)
              when != if (E != NULL) { ... pci_dev_put(...,(T2)E,...); ...}
              when != x2 = (T2)E
      (
      +   pci_dev_put(E);
          return;
      |
      +   pci_dev_put(E);
          return ret;
      )
        }
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      625fcaf9
  3. 21 7月, 2007 1 次提交
    • D
      [SPARC]: Fix serial console device detection. · c73fcc84
      David S. Miller 提交于
      The current scheme works on static interpretation of text names, which
      is wrong.
      
      The output-device setting, for example, must be resolved via an alias
      or similar to a full path name to the console device.
      
      Paths also contain an optional set of 'options', which starts with a
      colon at the end of the path.  The option area is used to specify
      which of two serial ports ('a' or 'b') the path refers to when a
      device node drives multiple ports.  'a' is assumed if the option
      specification is missing.
      
      This was caught by the UltraSPARC-T1 simulator.  The 'output-device'
      property was set to 'ttya' and we didn't pick upon the fact that this
      is an OBP alias set to '/virtual-devices/console'.  Instead we saw it
      as the first serial console device, instead of the hypervisor console.
      
      The infrastructure is now there to take advantage of this to resolve
      the console correctly even in multi-head situations in fbcon too.
      
      Thanks to Greg Onufer for the bug report.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c73fcc84
  4. 26 4月, 2007 1 次提交
  5. 13 2月, 2007 2 次提交
  6. 09 12月, 2006 1 次提交
  7. 18 10月, 2006 1 次提交
  8. 11 7月, 2006 1 次提交
  9. 26 6月, 2006 1 次提交
  10. 15 1月, 2006 1 次提交
  11. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4