projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03a36f1
)
iscsi: fix segfault in url parsing
author
Peter Lieven
<pl@dlhnet.de>
Thu, 15 Nov 2012 14:42:06 +0000
(15:42 +0100)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 28 Nov 2012 11:46:13 +0000
(12:46 +0100)
If an invalid URL is specified iscsi_get_error(iscsi) is called
with iscsi == NULL.
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
block/iscsi.c
patch
|
blob
|
history
diff --git
a/block/iscsi.c
b/block/iscsi.c
index
a6a819d
..
5cd8b49
100644
(file)
--- a/
block/iscsi.c
+++ b/
block/iscsi.c
@@
-947,8
+947,7
@@
static int iscsi_open(BlockDriverState *bs, const char *filename, int flags)
iscsi_url = iscsi_parse_full_url(iscsi, filename);
if (iscsi_url == NULL) {
- error_report("Failed to parse URL : %s %s", filename,
- iscsi_get_error(iscsi));
+ error_report("Failed to parse URL : %s", filename);
ret = -EINVAL;
goto out;
}