aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2015-05-06 20:55:29 +0800
committerGerd Hoffmann <kraxel@redhat.com>2015-05-08 13:01:07 +0200
commite60baebd409d547292c778d599111ea1623dd4b5 (patch)
treee6d3d392e929dbf2593a7382596277718652c7a0 /scripts/qapi-commands.py
parentusb: usb-mtp QOMify (diff)
downloadqemu-e60baebd409d547292c778d599111ea1623dd4b5.tar.xz
qemu-e60baebd409d547292c778d599111ea1623dd4b5.zip
usb-mtp: fix segmentation fault
When x-root property not be configured, will cause segfault because of null pointer accessing. Add a check for s->root property avoid segfault. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions