lkml.org 
[lkml]   [2005]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 2.6.11-rc2 14/29] ide: remove NULL checking in ide_error()
    > 14_ide_error_remove_NULL_test.patch
    >
    > In ide_error(), drive cannot be NULL. ide_dump_status() can't
    > handle NULL drive.


    Index: linux-ide-export/drivers/ide/ide-io.c
    ===================================================================
    --- linux-ide-export.orig/drivers/ide/ide-io.c 2005-02-02 10:28:04.465321080 +0900
    +++ linux-ide-export/drivers/ide/ide-io.c 2005-02-02 10:28:04.904249864 +0900
    @@ -555,7 +555,7 @@ ide_startstop_t ide_error (ide_drive_t *

    err = ide_dump_status(drive, msg, stat);

    - if (drive == NULL || (rq = HWGROUP(drive)->rq) == NULL)
    + if ((rq = HWGROUP(drive)->rq) == NULL)
    return ide_stopped;

    /* retry only "normal" I/O: */
    -
    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-03-22 14:10    [W:6.333 / U:0.312 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site