]> git.proxmox.com Git - pve-qemu-kvm.git/blob - debian/patches/xsa138-qemuu-2.patch
add patches for CVE-2015-5154
[pve-qemu-kvm.git] / debian / patches / xsa138-qemuu-2.patch
1 From aa851d30acfbb9580098ac1dc82885530cb8b3c1 Mon Sep 17 00:00:00 2001
2 From: Kevin Wolf <kwolf@redhat.com>
3 Date: Wed, 3 Jun 2015 14:17:46 +0200
4 Subject: [PATCH 2/3] ide/atapi: Fix START STOP UNIT command completion
5
6 The command must be completed on all code paths. START STOP UNIT with
7 pwrcnd set should succeed without doing anything.
8
9 Signed-off-by: Kevin Wolf <kwolf@redhat.com>
10 ---
11 hw/ide/atapi.c | 1 +
12 1 file changed, 1 insertion(+)
13
14 diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
15 index 950e311..79dd167 100644
16 --- a/hw/ide/atapi.c
17 +++ b/hw/ide/atapi.c
18 @@ -983,6 +983,7 @@ static void cmd_start_stop_unit(IDEState *s, uint8_t* buf)
19
20 if (pwrcnd) {
21 /* eject/load only happens for power condition == 0 */
22 + ide_atapi_cmd_ok(s);
23 return;
24 }
25
26 --
27 1.8.3.1
28