27 Jul, 2011

1 commit

  • This allows us to move duplicated code in
    (atomic_inc_not_zero() for now) to

    Signed-off-by: Arun Sharma
    Reviewed-by: Eric Dumazet
    Cc: Ingo Molnar
    Cc: David Miller
    Cc: Eric Dumazet
    Acked-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arun Sharma
     

24 Mar, 2011

1 commit

  • put_tty_driver calls tty_driver_kref_put on its argument, and then
    tty_driver_kref_put calls kref_put on the address of a field of this
    argument. kref_put checks for NULL, but in this case the field is likely
    to have some offset and so the result of taking its address will not be
    NULL. Labels are added to be able to skip over the call to put_tty_driver
    when the argument will be NULL.

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

    //
    @@
    expression *x;
    @@

    *if (x == NULL)
    { ...
    * put_tty_driver(x);
    ...
    return ...;
    }
    //

    Signed-off-by: Julia Lawall
    Cc: Torben Hohn
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     

23 Feb, 2011

1 commit