29 Nov, 2009

6 commits


22 Nov, 2009

1 commit

  • The result of calling kzalloc is never used or freed.

    The semantic match that finds this problem is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @r exists@
    local idexpression x;
    statement S;
    expression E;
    identifier f,f1,l;
    position p1,p2;
    expression *ptr != NULL;
    @@

    x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
    ...
    if (x == NULL) S
    }
    (
    x->f1 = E
    |
    (x->f1 == NULL || ...)
    |
    f(...,x->f1,...)
    )
    ...>
    (
    return \(0\|\|ptr\);
    |
    return@p2 ...;
    )

    @script:python@
    p1 << r.p1;
    p2 << r.p2;
    @@

    print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Dominik Brodowski

    Julia Lawall
     

12 Nov, 2009

2 commits

  • Fix handling of Zoomed Video Registers in the Topic pcmcia controller
    ( http://bugzilla.kernel.org/show_bug.cgi?id=14581 ). The information
    has been retrieved from the Topic manual which can be obtained from
    Toshiba.

    The Zoomed Video is used with PCMCIA Cards like the Margi DVD-to-Go.

    [linux@dominikbrodowski.net: whitespace & commit message fix]

    Signed-off-by: Avi Cohen Stuart
    Signed-off-by: Dominik Brodowski

    Avi Cohen Stuart
     
  • Fix printk format warnings on sizeof() [size_t] arguments.

    drivers/char/pcmcia/cm4040_cs.c:267: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'size_t'
    drivers/char/pcmcia/cm4040_cs.c:272: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'size_t'

    CC: Harald Welte
    Signed-off-by: Randy Dunlap
    Signed-off-by: Dominik Brodowski

    Randy Dunlap
     

09 Nov, 2009

31 commits