qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 0/2] SCSI changes for 2.0
@ 2014-03-26 12:21 Paolo Bonzini
  2014-03-26 12:21 ` [Qemu-devel] [PULL 1/2] scsi: check req pointer before dereferencing it Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Paolo Bonzini @ 2014-03-26 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: prasadjoshi.linux

Peter,

The following changes since commit 7f6613cedc59fa849105668ae971dc31004bca1c:

  target-mips: fix MTHC1 and MFHC1 when FPU in FR=0 mode (2014-03-25 23:36:35 +0100)

are available in the git repository at:

  git://github.com/bonzini/qemu.git scsi-next

for you to fetch changes up to ec8929a55512606456e364ffa80586219f67c904:

  spapr_vscsi: remove duplicate condition check (2014-03-26 13:19:22 +0100)

Two one-line fixes for issues detected by static analysis.

----------------------------------------------------------------
Prasad Joshi (2):
      scsi: check req pointer before dereferencing it
      spapr_vscsi: remove duplicate condition check

 hw/scsi/spapr_vscsi.c | 2 +-
 hw/scsi/vmw_pvscsi.c  | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
-- 
1.8.5.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PULL 1/2] scsi: check req pointer before dereferencing it
  2014-03-26 12:21 [Qemu-devel] [PULL 0/2] SCSI changes for 2.0 Paolo Bonzini
@ 2014-03-26 12:21 ` Paolo Bonzini
  2014-03-26 12:21 ` [Qemu-devel] [PULL 2/2] spapr_vscsi: remove duplicate condition check Paolo Bonzini
  2014-03-26 17:12 ` [Qemu-devel] [PULL 0/2] SCSI changes for 2.0 Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2014-03-26 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: prasadjoshi.linux

From: Prasad Joshi <prasadjoshi.linux@gmail.com>

Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/scsi/vmw_pvscsi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
index 7d344b9..e35bff7 100644
--- a/hw/scsi/vmw_pvscsi.c
+++ b/hw/scsi/vmw_pvscsi.c
@@ -479,12 +479,13 @@ static void
 pvscsi_command_complete(SCSIRequest *req, uint32_t status, size_t resid)
 {
     PVSCSIRequest *pvscsi_req = req->hba_private;
-    PVSCSIState *s = pvscsi_req->dev;
+    PVSCSIState *s;
 
     if (!pvscsi_req) {
         trace_pvscsi_command_complete_not_found(req->tag);
         return;
     }
+    s = pvscsi_req->dev;
 
     if (resid) {
         /* Short transfer.  */
-- 
1.8.5.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Qemu-devel] [PULL 2/2] spapr_vscsi: remove duplicate condition check
  2014-03-26 12:21 [Qemu-devel] [PULL 0/2] SCSI changes for 2.0 Paolo Bonzini
  2014-03-26 12:21 ` [Qemu-devel] [PULL 1/2] scsi: check req pointer before dereferencing it Paolo Bonzini
@ 2014-03-26 12:21 ` Paolo Bonzini
  2014-03-26 17:12 ` [Qemu-devel] [PULL 0/2] SCSI changes for 2.0 Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2014-03-26 12:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: prasadjoshi.linux

From: Prasad Joshi <prasadjoshi.linux@gmail.com>

Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 hw/scsi/spapr_vscsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c
index 34478f0..d4ada4f 100644
--- a/hw/scsi/spapr_vscsi.c
+++ b/hw/scsi/spapr_vscsi.c
@@ -690,7 +690,7 @@ static void vscsi_inquiry_no_target(VSCSIState *s, vscsi_req *req)
     int rc, len, alen;
 
     /* We dont do EVPD. Also check that page_code is 0 */
-    if ((cdb[1] & 0x01) || (cdb[1] & 0x01) || cdb[2] != 0) {
+    if ((cdb[1] & 0x01) || cdb[2] != 0) {
         /* Send INVALID FIELD IN CDB */
         vscsi_makeup_sense(s, req, ILLEGAL_REQUEST, 0x24, 0);
         vscsi_send_rsp(s, req, CHECK_CONDITION, 0, 0);
-- 
1.8.5.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PULL 0/2] SCSI changes for 2.0
  2014-03-26 12:21 [Qemu-devel] [PULL 0/2] SCSI changes for 2.0 Paolo Bonzini
  2014-03-26 12:21 ` [Qemu-devel] [PULL 1/2] scsi: check req pointer before dereferencing it Paolo Bonzini
  2014-03-26 12:21 ` [Qemu-devel] [PULL 2/2] spapr_vscsi: remove duplicate condition check Paolo Bonzini
@ 2014-03-26 17:12 ` Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2014-03-26 17:12 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: Prasad Joshi, QEMU Developers

On 26 March 2014 12:21, Paolo Bonzini <pbonzini@redhat.com> wrote:
> Peter,
>
> The following changes since commit 7f6613cedc59fa849105668ae971dc31004bca1c:
>
>   target-mips: fix MTHC1 and MFHC1 when FPU in FR=0 mode (2014-03-25 23:36:35 +0100)
>
> are available in the git repository at:
>
>   git://github.com/bonzini/qemu.git scsi-next
>
> for you to fetch changes up to ec8929a55512606456e364ffa80586219f67c904:
>
>   spapr_vscsi: remove duplicate condition check (2014-03-26 13:19:22 +0100)
>
> Two one-line fixes for issues detected by static analysis.

Applied, thanks.

-- PMM

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-03-26 17:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 12:21 [Qemu-devel] [PULL 0/2] SCSI changes for 2.0 Paolo Bonzini
2014-03-26 12:21 ` [Qemu-devel] [PULL 1/2] scsi: check req pointer before dereferencing it Paolo Bonzini
2014-03-26 12:21 ` [Qemu-devel] [PULL 2/2] spapr_vscsi: remove duplicate condition check Paolo Bonzini
2014-03-26 17:12 ` [Qemu-devel] [PULL 0/2] SCSI changes for 2.0 Peter Maydell

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).