projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64ebe71
)
ide: Fix off-by-one error in array index check
author
Kevin Wolf
<kwolf@redhat.com>
Wed, 26 Oct 2011 09:52:47 +0000
(11:52 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:49 +0000
(19:25 +0200)
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
hw/ide/core.c
patch
|
blob
|
history
diff --git
a/hw/ide/core.c
b/hw/ide/core.c
index 280a117fe236b8d2e00864eec251439d993920ae..29305d35f4f7d1efcded3c70a8ce619c15ddb76d 100644
(file)
--- a/
hw/ide/core.c
+++ b/
hw/ide/core.c
@@
-2039,7
+2039,7
@@
static int ide_drive_pio_post_load(void *opaque, int version_id)
{
IDEState *s = opaque;
- if (s->end_transfer_fn_idx > ARRAY_SIZE(transfer_end_table)) {
+ if (s->end_transfer_fn_idx >
=
ARRAY_SIZE(transfer_end_table)) {
return -EINVAL;
}
s->end_transfer_func = transfer_end_table[s->end_transfer_fn_idx];