OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6613c
)
scsi: check req pointer before dereferencing it
author
Prasad Joshi
<prasadjoshi.linux@gmail.com>
Wed, 19 Mar 2014 01:40:32 +0000
(07:10 +0530)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 26 Mar 2014 12:19:22 +0000
(13:19 +0100)
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/vmw_pvscsi.c
patch
|
blob
|
history
diff --git
a/hw/scsi/vmw_pvscsi.c
b/hw/scsi/vmw_pvscsi.c
index
7d344b9
..
e35bff7
100644
(file)
--- 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. */