diff options
| author | Prasad J Pandit <pjp@fedoraproject.org> | 2018-12-13 01:00:39 +0530 |
|---|---|---|
| committer | Marcel Apfelbaum <marcel.apfelbaum@gmail.com> | 2018-12-22 11:09:57 +0200 |
| commit | f1e2e38ee0136b7710a2caa347049818afd57a1b (patch) | |
| tree | 49042b31975582c51c2e6691c120c78575d1a85e /hw/core/qdev.c | |
| parent | 7be3a21325e95e3f0bb46d1a67d5fc702b24701f (diff) | |
| download | focaccia-qemu-f1e2e38ee0136b7710a2caa347049818afd57a1b.tar.gz focaccia-qemu-f1e2e38ee0136b7710a2caa347049818afd57a1b.zip | |
pvrdma: check return value from pvrdma_idx_ring_has_ routines
pvrdma_idx_ring_has_[data/space] routines also return invalid index PVRDMA_INVALID_IDX[=-1], if ring has no data/space. Check return value from these routines to avoid plausible infinite loops. Reported-by: Li Qiang <liq3ea@163.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw/core/qdev.c')
0 files changed, 0 insertions, 0 deletions