Revision aba59705d963b79f5732f2265fa2175654b61db8 authored by Philippe Mathieu-Daudé on 04 June 2018, 15:14:20 UTC, committed by Michael Roth on 21 June 2018, 15:18:22 UTC
This fixes:

  hw/usb/dev-mtp.c:971:5: warning: 4th function call argument is an uninitialized value
      trace_usb_mtp_op_get_partial_object(s->dev.addr, o->handle, o->path,
                                           c->argv[1], c->argv[2]);
                                                       ^~~~~~~~~~
and:

  hw/usb/dev-mtp.c:981:12: warning: Assigned value is garbage or undefined
      offset = c->argv[1];
               ^ ~~~~~~~~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180604151421.23385-3-f4bug@amsat.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 62713a2e50f653162387451034f1a2490e87be88)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
1 parent 17e3fcb
History
File Mode Size
coccinelle
kvm
modules
qemu-guest-agent
qemugdb
qmp
tracetool
analyse-9p-simpletrace.py -rwxr-xr-x 8.8 KB
analyze-inclusions -rw-r--r-- 3.2 KB
analyze-migration.py -rwxr-xr-x 20.2 KB
archive-source.sh -rwxr-xr-x 1.9 KB
argparse.py -rw-r--r-- 87.7 KB
check-qerror.sh -rwxr-xr-x 635 bytes
checkpatch.pl -rwxr-xr-x 73.4 KB
clean-header-guards.pl -rwxr-xr-x 6.3 KB
clean-includes -rwxr-xr-x 5.6 KB
cleanup-trace-events.pl -rwxr-xr-x 1.1 KB
cocci-macro-file.h -rw-r--r-- 4.9 KB
coverity-model.c -rw-r--r-- 8.4 KB
create_config -rwxr-xr-x 3.0 KB
device-crash-test -rwxr-xr-x 28.8 KB
disas-objdump.pl -rwxr-xr-x 2.7 KB
dump-guest-memory.py -rw-r--r-- 19.8 KB
extract-vsssdk-headers -rwxr-xr-x 937 bytes
feature_to_c.sh -rw-r--r-- 2.1 KB
get_maintainer.pl -rwxr-xr-x 53.3 KB
git-submodule.sh -rwxr-xr-x 1.9 KB
git.orderfile -rw-r--r-- 394 bytes
gtester-cat -rwxr-xr-x 476 bytes
hxtool -rw-r--r-- 1.4 KB
make-release -rwxr-xr-x 879 bytes
make_device_config.sh -rw-r--r-- 735 bytes
ordereddict.py -rw-r--r-- 4.0 KB
qapi-commands.py -rw-r--r-- 7.4 KB
qapi-event.py -rw-r--r-- 5.6 KB
qapi-introspect.py -rw-r--r-- 7.1 KB
qapi-types.py -rw-r--r-- 8.1 KB
qapi-visit.py -rw-r--r-- 10.1 KB
qapi.py -rw-r--r-- 69.8 KB
qapi2texi.py -rwxr-xr-x 8.8 KB
qemu-binfmt-conf.sh -rwxr-xr-x 10.2 KB
qemu-gdb.py -rw-r--r-- 1.2 KB
qemu.py -rw-r--r-- 10.5 KB
qtest.py -rw-r--r-- 3.1 KB
refresh-pxe-roms.sh -rwxr-xr-x 981 bytes
shaderinclude.pl -rw-r--r-- 310 bytes
show-fixed-bugs.sh -rwxr-xr-x 2.7 KB
signrom.py -rw-r--r-- 1.4 KB
simpletrace.py -rwxr-xr-x 8.4 KB
switch-timer-api -rwxr-xr-x 4.8 KB
texi2pod.pl -rwxr-xr-x 13.3 KB
tracetool.py -rwxr-xr-x 4.4 KB
update-linux-headers.sh -rwxr-xr-x 5.2 KB
vmstate-static-checker.py -rwxr-xr-x 15.4 KB

back to top