11 Sep, 2009

1 commit

  • Use the function resource_size, which reduces the chance of introducing
    off-by-one errors in calculating the resource size.

    The semantic patch that makes this change is as follows:
    (http://www.emn.fr/x-info/coccinelle/)

    //
    @@
    struct resource *res;
    @@

    - (res->end - res->start) + 1
    + resource_size(res)
    //

    Signed-off-by: Julia Lawall
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Jeff Garzik

    Julia Lawall
     

02 Sep, 2009

1 commit


29 Jul, 2009

1 commit

  • host->ports[] always contain pointers to valid port structures since
    a "dummy port" structure is used in case if there is no physical port.

    This patch takes care of two entries from Dan's list:

    drivers/ata/sata_sil.c +535 sil_interrupt(13) warning: variable derefenced before check 'ap'
    drivers/ata/sata_mv.c +2517 mv_unexpected_intr(6) warning: variable derefenced before check 'ap'

    and of another needless NULL pointer check in pata_octeon_cf.c.

    Reported-by: Dan Carpenter
    Cc: corbet@lwn.net
    Cc: eteo@redhat.com
    Signed-off-by: Bartlomiej Zolnierkiewicz
    Signed-off-by: Jeff Garzik

    Bartlomiej Zolnierkiewicz
     

07 Apr, 2009

1 commit


25 Mar, 2009

1 commit


16 Jan, 2009

1 commit

  • Cavium OCTEON processor support was recently merged, so now we have
    this CF driver for your consideration.

    Most OCTEON variants have *no* DMA or interrupt support on the CF
    interface so for these, only PIO is supported. Although if DMA is
    available, we do take advantage of it.

    Signed-off-by: David Daney
    Signed-off-by: Jeff Garzik

    David Daney