Re: [Qemu-devel] [PATCH 1/2] hmp: block qemu-io command for device without media

2017-12-01 Thread Stefan Hajnoczi
On Tue, Nov 28, 2017 at 03:10:54PM +0300, Denis V. Lunev wrote: > In this case blk->bs == NULL and the code will just crash. Emulate error > on that path. > > Signed-off-by: Denis V. Lunev > CC: "Dr. David Alan Gilbert" > CC: Kevin Wolf > CC: Stefan Hajnoczi > --- > hmp.c | 3 +++ > 1 file ch

[Qemu-devel] [PATCH 1/2] hmp: block qemu-io command for device without media

2017-11-28 Thread Denis V. Lunev
In this case blk->bs == NULL and the code will just crash. Emulate error on that path. Signed-off-by: Denis V. Lunev CC: "Dr. David Alan Gilbert" CC: Kevin Wolf CC: Stefan Hajnoczi --- hmp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hmp.c b/hmp.c index 35a7041824..cfd1d9ab29 1006