lkml.org 
[lkml]   [2011]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] scsi_dh: Fix return value of scsi_dh_attach()
    Date
    scsi_dh_attach() should return a negative value on error.

    Signed-off-by: Richard Weinberger <richard@nod.at>
    ---
    include/scsi/scsi_dh.h | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/include/scsi/scsi_dh.h b/include/scsi/scsi_dh.h
    index e3f2db2..e07ab10 100644
    --- a/include/scsi/scsi_dh.h
    +++ b/include/scsi/scsi_dh.h
    @@ -74,7 +74,7 @@ static inline int scsi_dh_handler_exist(const char *name)
    }
    static inline int scsi_dh_attach(struct request_queue *req, const char *name)
    {
    - return SCSI_DH_NOSYS;
    + return -SCSI_DH_NOSYS;
    }
    static inline void scsi_dh_detach(struct request_queue *q)
    {
    --
    1.7.7.3


    \
     
     \ /
      Last update: 2011-11-18 00:37    [W:0.018 / U:60.884 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site