On Dec 20, 2007 1:44 PM, FUJITA Tomonori <[EMAIL PROTECTED]> 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?

Thanks,

-- 

Julian Calaby

Email: [EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to