diff options
author | Prasad J Pandit <pjp@fedoraproject.org> | 2018-12-13 01:00:35 +0530 |
---|---|---|
committer | Marcel Apfelbaum <marcel.apfelbaum@gmail.com> | 2018-12-22 11:09:57 +0200 |
commit | 2aa86456fb938a11f2b7bd57c8643c213218681c (patch) | |
tree | 248144d52b5b44c9fdb3e25461f032ff744fc577 /hw | |
parent | 0e68373cc2b3a063ce067bc0cc3edaf370752890 (diff) | |
download | qemu-2aa86456fb938a11f2b7bd57c8643c213218681c.zip qemu-2aa86456fb938a11f2b7bd57c8643c213218681c.tar.gz qemu-2aa86456fb938a11f2b7bd57c8643c213218681c.tar.bz2 |
pvrdma: add uar_read routine
Define skeleton 'uar_read' routine. Avoid NULL dereference.
Reported-by: Li Qiang <liq3ea@163.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/rdma/vmw/pvrdma_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/rdma/vmw/pvrdma_main.c b/hw/rdma/vmw/pvrdma_main.c index 64de16f..838ad8a 100644 --- a/hw/rdma/vmw/pvrdma_main.c +++ b/hw/rdma/vmw/pvrdma_main.c @@ -448,6 +448,11 @@ static const MemoryRegionOps regs_ops = { }, }; +static uint64_t uar_read(void *opaque, hwaddr addr, unsigned size) +{ + return 0xffffffff; +} + static void uar_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { PVRDMADev *dev = opaque; @@ -489,6 +494,7 @@ static void uar_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) } static const MemoryRegionOps uar_ops = { + .read = uar_read, .write = uar_write, .endianness = DEVICE_LITTLE_ENDIAN, .impl = { |