Re: [PATCH] SMP request handlers need to update resid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 20, 2007 2:20 PM, FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote:
>
> On Thu, 20 Dec 2007 14:13:15 +1100
> "Julian Calaby" <julian.calaby@xxxxxxxxx> wrote:
>
> > On Dec 20, 2007 1:44 PM, FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> wrote:
> > > --- a/drivers/message/fusion/mptsas.c
> > > +++ b/drivers/message/fusion/mptsas.c
> > > @@ -1343,6 +1343,8 @@ static int mptsas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy,
> > >                 smprep = (SmpPassthroughReply_t *)ioc->sas_mgmt.reply;
> > >                 memcpy(req->sense, smprep, sizeof(*smprep));
> > >                 req->sense_len = sizeof(*smprep);
> > > +               req->data_len = 0;
> > > +               rsp->data_len -= smprep->ResponseDataLength;
> >
> > Would
> >
> > +               rsp->data_len = -smprep->ResponseDataLength;
> >
> > not work?

Oh <deity>! I'm totally blind! they're completely different variables! Argh!

Sorry for the noise,

-- 

Julian Calaby

Email: julian.calaby@xxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux