qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 638b83: hmp: fix crash in 'info block -n -v'


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 638b83: hmp: fix crash in 'info block -n -v'
Date: Fri, 17 Apr 2015 08:00:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 638b8366200130cc7cf7a026630bc6bfb63b0c4c
      
https://github.com/qemu/qemu/commit/638b8366200130cc7cf7a026630bc6bfb63b0c4c
  Author: Alberto Garcia <address@hidden>
  Date:   2015-04-17 (Fri, 17 Apr 2015)

  Changed paths:
    M hmp.c

  Log Message:
  -----------
  hmp: fix crash in 'info block -n -v'

The image field in BlockDeviceInfo should never be null, however
bdrv_block_device_info() is not filling it in.

This makes the 'info block -n -v' command crash QEMU.

The proper solution is probably to move the relevant code from
bdrv_query_info() to bdrv_block_device_info(), but since we're too
close to the release for that this simpler workaround solves the
crash.

Signed-off-by: Alberto Garcia <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]