lkml.org 
[lkml]   [2009]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC][PATCH] [SCSI]: scsi_transport_iscsi.c return -EOVERFLOW for Too many iscsi targets
    Jaswinder Singh Rajput wrote:
    > setting err as -EOVERFLOW for Too many iscsi targets.
    >
    > Also fixes compiler warning for gcc < 4.3.3 :
    >
    > CC drivers/scsi/scsi_transport_iscsi.o
    > drivers/scsi/scsi_transport_iscsi.c: In function ‘iscsi_add_session’:
    > drivers/scsi/scsi_transport_iscsi.c:678: warning: ‘err’ may be used uninitialized in this function
    >
    > Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
    > ---
    > drivers/scsi/scsi_transport_iscsi.c | 1 +
    > 1 files changed, 1 insertions(+), 0 deletions(-)
    >
    > diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
    > index 0947954..fdcda7f 100644
    > --- a/drivers/scsi/scsi_transport_iscsi.c
    > +++ b/drivers/scsi/scsi_transport_iscsi.c
    > @@ -693,6 +693,7 @@ int iscsi_add_session(struct iscsi_cls_session *session, unsigned int target_id)
    > "Too many iscsi targets. Max "
    > "number of targets is %d.\n",
    > ISCSI_MAX_TARGET - 1);
    > + err = -EOVERFLOW;
    > goto release_host;
    > }
    > }


    Fine by me. Send it through whatever tree you guys want.

    Acked-by: Mike Christie <michaelc@cs.wisc.edu>
    --
    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: 2009-05-27 16:31    [W:0.025 / U:0.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site