diff options
author | Gonglei <arei.gonglei@huawei.com> | 2015-05-06 20:55:29 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-05-08 13:01:07 +0200 |
commit | e60baebd409d547292c778d599111ea1623dd4b5 (patch) | |
tree | e6d3d392e929dbf2593a7382596277718652c7a0 /translate-all.c | |
parent | 7c03a899e6e4030a88bd42c4d494e3a7521806ea (diff) | |
download | qemu-e60baebd409d547292c778d599111ea1623dd4b5.zip qemu-e60baebd409d547292c778d599111ea1623dd4b5.tar.gz qemu-e60baebd409d547292c778d599111ea1623dd4b5.tar.bz2 |
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 'translate-all.c')
0 files changed, 0 insertions, 0 deletions