lkml.org 
[lkml]   [2005]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: Linux 2.6.12-rc3: Oops on IDE flash disk eject
    The following patch fixes the Oops though I don't know if this is the
    correct solution.

    --- linux-2.6.12-rc3/drivers/ide/ide.c.ast
    +++ linux-2.6.12-rc3/drivers/ide/ide.c
    @@ -2082,7 +2082,8 @@
    static int ide_drive_remove(struct device * dev)
    {
    ide_drive_t * drive = container_of(dev,ide_drive_t,gendev);
    - DRIVER(drive)->cleanup(drive);
    + if(DRIVER(drive))
    + DRIVER(drive)->cleanup(drive);
    return 0;
    }

    --
    Andreas Steinmetz SPAMmers use robotrap@domdv.de
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-04-21 17:30    [W:0.031 / U:59.212 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site