diff options
author | Kevin Wolf <kwolf@redhat.com> | 2014-03-06 15:47:32 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-03-06 17:27:28 +0100 |
commit | c6e0bd9b7037937aafeb1d34ec17975a7d685bb7 (patch) | |
tree | 0343add7aadc0202fae6a1b6c3e2766c995696f7 /tests/boot-order-test.c | |
parent | 8ae8e904fcba484ff7c3f8f31339b56ebd88fbad (diff) |
blockdev: Fix NULL pointer dereference in blockdev-add
If aio=native, we check that cache.direct is set as well. If however
cache wasn't specified at all, qemu just segfaulted.
The old condition didn't make any sense anyway because it effectively
only checked for the default cache mode case, but not for an explicitly
set cache.direct=off mode.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/boot-order-test.c')
0 files changed, 0 insertions, 0 deletions