qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: P J P <ppandit@redhat.com>
To: Qemu Developers <qemu-devel@nongnu.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>, Li Qiang <liqiang6-s@360.cn>,
	Hannes Reinecke <hare@suse.de>, Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] scsi: mptsas: infinite loop while fetching requests
Date: Tue, 7 Jun 2016 12:12:10 +0530 (IST)	[thread overview]
Message-ID: <alpine.LFD.2.20.1606071209270.5446@wniryva> (raw)
In-Reply-To: <1464077264-25473-1-git-send-email-ppandit@redhat.com>

+-- On Tue, 24 May 2016, P J P wrote --+
| diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c
| index 499c146..be88e16 100644
| --- a/hw/scsi/mptsas.c
| +++ b/hw/scsi/mptsas.c
| @@ -754,11 +754,6 @@ static void mptsas_fetch_request(MPTSASState *s)
|      hwaddr addr;
|      int size;
|  
| -    if (s->state != MPI_IOC_STATE_OPERATIONAL) {
| -        mptsas_set_fault(s, MPI_IOCSTATUS_INVALID_STATE);
| -        return;
| -    }
| -
|      /* Read the message header from the guest first. */
|      addr = s->host_mfa_high_addr | MPTSAS_FIFO_GET(s, request_post);
|      pci_dma_read(pci, addr, req, sizeof(hdr));
| @@ -789,6 +784,10 @@ static void mptsas_fetch_requests(void *opaque)
|  {
|      MPTSASState *s = opaque;
|  
| +    if (s->state != MPI_IOC_STATE_OPERATIONAL) {
| +        mptsas_set_fault(s, MPI_IOCSTATUS_INVALID_STATE);
| +        return;
| +    }
|      while (!MPTSAS_FIFO_EMPTY(s, request_post)) {
|          mptsas_fetch_request(s);
|      }

Ping..!
--
Prasad J Pandit / Red Hat Product Security Team
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F

  reply	other threads:[~2016-06-07  6:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24  8:07 [Qemu-devel] [PATCH] scsi: mptsas: infinite loop while fetching requests P J P
2016-06-07  6:42 ` P J P [this message]
2016-06-07  7:53   ` Paolo Bonzini
2016-06-07  8:44     ` P J P

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.20.1606071209270.5446@wniryva \
    --to=ppandit@redhat.com \
    --cc=agraf@suse.de \
    --cc=hare@suse.de \
    --cc=liqiang6-s@360.cn \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).