[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] block: fix aio_flush segfaults for read-only pr
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] Re: [PATCH] block: fix aio_flush segfaults for read-only protocols (e.g. curl) |
Date: |
Mon, 17 May 2010 11:10:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 |
Am 16.05.2010 13:59, schrieb Avi Kivity:
> Not all block format drivers expose an io_flush method (reasonable for
> read-only protocols), so calling io_flush there will immediately segfault.
>
> Fix by checking for the method's existence before calling it.
>
> Signed-off-by: Avi Kivity <address@hidden>
Thanks, applied to the block branch.
Kevin