Re: [Qemu-devel] [PATCH] hw/ide: fix a writing to null pointer exception

2016-08-02 Thread Peter Maydell
On 2 August 2016 at 11:22, fikshu(忽朝俭) wrote: > From b5e5c01b025e83500ca46628add7f63f42f9b2ab Mon Sep 17 00:00:00 2001 > From: fikshu > Date: Tue, 2 Aug 2016 17:39:16 +0800 > Subject: [PATCH] hw/ide: fix a writing to null pointer exception > > In qemu less than v2.1.3, ide_flush_cache calls ide_f

[Qemu-devel] [PATCH] hw/ide: fix a writing to null pointer exception

2016-08-02 Thread 忽朝俭
From b5e5c01b025e83500ca46628add7f63f42f9b2ab Mon Sep 17 00:00:00 2001 From: fikshu Date: Tue, 2 Aug 2016 17:39:16 +0800 Subject: [PATCH] hw/ide: fix a writing to null pointer exception In qemu less than v2.1.3, ide_flush_cache calls ide_flush_cb with s->bs == NULL, and ide_flush_cb calls bdrv_ac

[Qemu-devel] [PATCH] hw/ide: fix a writing to null pointer exception

2016-08-02 Thread chaojianhu
From: chaojianhu Date: Tue, 2 Aug 2016 17:39:16 +0800 Subject: [PATCH] hw/ide: fix a writing to null pointer exception In qemu less than v2.1.3, ide_flush_cache calls ide_flush_cb with s->bs == NULL, and ide_flush_cb calls bdrv_acct_done without checking s->bs neither. Finally, bdrv_acct_done wr

[Qemu-devel] [PATCH] hw/ide: fix a writing to null pointer exception

2016-08-02 Thread chaojianhu
From: chaojianhu Date: Tue, 2 Aug 2016 17:39:16 +0800 Subject: [PATCH] hw/ide: fix a writing to null pointer exception In qemu less than v2.1.3, ide_flush_cache calls ide_flush_cb with s->bs == NULL, and ide_flush_cb calls bdrv_acct_done without checking s->bs neither. Finally, bdrv_acct_done wr

[Qemu-devel] [PATCH] hw/ide: fix a writing to null pointer exception

2016-08-02 Thread 忽朝俭
From b5e5c01b025e83500ca46628add7f63f42f9b2ab Mon Sep 17 00:00:00 2001From: chaojianhu Date: Tue, 2 Aug 2016 17:39:16 +0800Subject: [PATCH] hw/ide: fix a writing to null pointer exception In qemu less than v2.1.3, ide_flush_cache calls ide_flush_cb with s->bs == NULL,and ide_flush_cb calls bdrv_