14 Oct, 2011

1 commit


04 Aug, 2011

1 commit

  • Pci_get_slot calls pci_dev_get, so pci_dev_put is needed before leaving the
    function in the case where pci_get_slot is locally used.

    The semantic match that finds this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    local idexpression x;
    expression e;
    @@

    *x = pci_get_slot(...)
    ... when != true x == NULL
    when != pci_dev_put(x)
    when != e = x
    when != if (x != NULL) {}
    *return ...;
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: David S. Miller

    Julia Lawall
     

31 Mar, 2011

1 commit


19 Jan, 2010

4 commits


04 Dec, 2009

1 commit


07 Jan, 2009

1 commit


30 Dec, 2008

1 commit


22 Oct, 2008

1 commit