From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Christie Subject: Re: [RFC][PATCH] [SCSI]: scsi_transport_iscsi.c return -EOVERFLOW for Too many iscsi targets Date: Wed, 27 May 2009 09:27:06 -0500 Message-ID: <4A1D4DBA.8050802@cs.wisc.edu> References: <1243401279.3118.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from sabe.cs.wisc.edu ([128.105.6.20]:59073 "EHLO sabe.cs.wisc.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753996AbZE0O2Z (ORCPT ); Wed, 27 May 2009 10:28:25 -0400 In-Reply-To: <1243401279.3118.2.camel@localhost.localdomain> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Jaswinder Singh Rajput Cc: James Bottomley , linux-scsi , Ingo Molnar , LKML Jaswinder Singh Rajput wrote: > setting err as -EOVERFLOW for Too many iscsi targets. >=20 > Also fixes compiler warning for gcc < 4.3.3 : >=20 > CC drivers/scsi/scsi_transport_iscsi.o > drivers/scsi/scsi_transport_iscsi.c: In function =E2=80=98iscsi_add_s= ession=E2=80=99: > drivers/scsi/scsi_transport_iscsi.c:678: warning: =E2=80=98err=E2=80=99= may be used uninitialized in this function >=20 > Signed-off-by: Jaswinder Singh Rajput > --- > drivers/scsi/scsi_transport_iscsi.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) >=20 > 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 *s= ession, unsigned int target_id) > "Too many iscsi targets. Max " > "number of targets is %d.\n", > ISCSI_MAX_TARGET - 1); > + err =3D -EOVERFLOW; > goto release_host; > } > } =46ine by me. Send it through whatever tree you guys want. Acked-by: Mike Christie -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html