summary refs log tree commit diff stats
path: root/hw/intc
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2015-04-28 11:14:02 -0600
committerAlex Williamson <alex.williamson@redhat.com>2015-04-28 11:14:02 -0600
commitc6d231e2fd3773ef9a566ca24962f2314cb78f73 (patch)
tree805054cc6bc603a8231333ff782ba40ad53934e7 /hw/intc
parent07ceaf98800519ef9c5dc893af00f1fe1f9144e4 (diff)
downloadfocaccia-qemu-c6d231e2fd3773ef9a566ca24962f2314cb78f73.tar.gz
focaccia-qemu-c6d231e2fd3773ef9a566ca24962f2314cb78f73.zip
vfio-pci: Fix error path sign
This is an impossible error path due to the fact that we're reading a
kernel provided, rather than user provided link, which will certainly
always fit in PATH_MAX.  Currently it returns a fixed 26 char path
plus %d group number, which typically maxes out at double digits.
However, the caller of the initfn certainly expects a less-than zero
return value on error, not just a non-zero value.  Therefore we
should correct the sign here.

Reported-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'hw/intc')
0 files changed, 0 insertions, 0 deletions