misc: Another round of static analysis fixups
Mostly addressing uninitialised members.
This commit is contained in:
@@ -43,7 +43,8 @@
|
||||
|
||||
VirtDescriptor::VirtDescriptor(PortProxy &_memProxy, VirtQueue &_queue,
|
||||
Index descIndex)
|
||||
: memProxy(&_memProxy), queue(&_queue), _index(descIndex)
|
||||
: memProxy(&_memProxy), queue(&_queue), _index(descIndex),
|
||||
desc{0, 0, 0, 0}
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -479,7 +479,7 @@ public:
|
||||
} M5_ATTR_PACKED;
|
||||
|
||||
VirtRing<T>(PortProxy &proxy, uint16_t size)
|
||||
: ring(size), _proxy(proxy), _base(0) {}
|
||||
: header{0, 0}, ring(size), _proxy(proxy), _base(0) {}
|
||||
|
||||
/**
|
||||
* Set the base address of the VirtIO ring buffer.
|
||||
|
||||
@@ -291,7 +291,7 @@ VirtIO9PProxy::writeAll(const uint8_t *data, size_t len)
|
||||
|
||||
VirtIO9PDiod::VirtIO9PDiod(Params *params)
|
||||
: VirtIO9PProxy(params),
|
||||
fd_to_diod(-1), fd_from_diod(-1)
|
||||
fd_to_diod(-1), fd_from_diod(-1), diod_pid(-1)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@
|
||||
#include "params/PciVirtIO.hh"
|
||||
|
||||
PciVirtIO::PciVirtIO(const Params *params)
|
||||
: PciDevice(params), vio(*params->vio),
|
||||
callbackKick(this)
|
||||
: PciDevice(params), queueNotify(0), interruptDeliveryPending(false),
|
||||
vio(*params->vio), callbackKick(this)
|
||||
{
|
||||
// Override the subsystem ID with the device ID from VirtIO
|
||||
config.subsystemID = htole(vio.deviceId);
|
||||
|
||||
Reference in New Issue
Block a user